📄️ 初始化Once you have installed the Socket.IO server library, you can now init the server. The complete list of options can be found here.
📄️ 服务器实例The Server instance (often called io in the code examples) has a few attributes that may be of use in your application.
📄️ Socket实例A Socket is the fundamental class for interacting with the client. It inherits all the methods of the Node.js EventEmitter, like emit, on, once or removeListener.
📄️ 反向代理后面You will find below the configuration needed for deploying a Socket.IO server behind a reverse-proxy solution, such as:
📄️ 与捆绑器一起使用While less common than frontend bundling, it is totally possible to create a bundle for the server.