因为第二张图的 this 是 null,
不可能的,我一直用的cocos的websocket.
来看看socket.io
我说的是socket.io 不是websocket
你用的是哪个版本的socket.io?