最終更新:2018-11-02 (金) 20:08:25 (2025d)
Socket.IO/サーバ/Server
- Server = require("socket.io"); //module.exports = Server
https://socket.io/docs/server-api/
ソースコード
コンストラクタ
- require('socket.io')()
- new Server(httpServer[, options])
- new Server(port[, options])
- new Server(options)
- Server.attachを呼び出し
メソッド
- Server.listen() = server.attach() = return this (Server)