Initialization

Once you have installed the Socket.IO client library, you can now init the client. The complete list of options can be found here.

In the examples below, the io object comes either from:

一旦安装了Socket.IO客户端库,就可以初始化客户端。 选项的完整列表可以在这里找到。

在以下示例中,io对象来自:

  • the