最終更新:2020-07-16 (木) 12:41:48 (1370d)  

Socket.IO 0.9
Top / Socket.IO 0.9

移行

メモ

  • io.use?
  • io.set?() and io.get?() methods are deprecated and only supported for backwards compatibility.

ショートカット

Broadcasting to all clients in default namespace

Starting the server

  • var io = require('socket.io');
  • var socket = io.listen?(80, { /* options */ });
    • to
  • var io = require('socket.io');
  • var socket = io({ /* options */ });

設定

  • io.set? is gone
  • io(オプション)として指定する

setとget

  • The get and set functions on the socket object were removed in version 1.x.

その他

  • parser.encode?->parser.Encoder?
  • parser.decode?->parser.Decoder?