Skip to content
Yhaojing edited this page Sep 10, 2015 · 1 revision

Welcome to the learning_node wiki!

这是一个关于socket.io使用的一个简单的小例子.

  • 服务端:在express中使用时注意是server.listen(port)
  • 客户端:引入socket.io 是<script src="/socket.io/socket.io.js"></script>
  • 主要使用socket的api有io.sockets.emit /socket.on/socket.emit/详细了解各种方法请学习 学习地址

Clone this wiki locally