Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

关于socket.io,如何在server端终止socket自定义监听事件?

$
0
0
 socket.on('some event',()=>{
		// some code
	})

像这样的socket监听事件中,如果执行完一遍后,想终止该监听事件,该怎么移除呢 ? 之前在网上找到的知识移除client端的监听事件,在服务端没有找到解决的办法…

谢谢大神的解救~~


Viewing all articles
Browse latest Browse all 14821

Trending Articles