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

nodejs后端有什么方法可以产生大量socket.io的请求

$
0
0
<script src="/socket.io/socket.io.js"></script>
<script>
  var socket = io('http://localhost');
  socket.on('connect', function(){});
  socket.on('event', function(data){});
  socket.on('disconnect', function(){});
</script>

对应的后端代码


Viewing all articles
Browse latest Browse all 14821

Trending Articles