利用 socket.io 建立聊天室 參考:
- socket.io
- Github
- The Net Ninja WebSockets Tutorial
- https://blog.gtwang.org/programming/socket-io-node-js-realtime-app/
- http://single9.net/2018/01/node-js-%E8%88%87-socket-io-%E5%8D%B3%E6%99%82%E8%81%8A%E5%A4%A9%E5%AE%A4%E5%AF%A6%E4%BD%9C%E4%BA%8C/
- 聊天室1 聊天室2
程式範本:capeta0507 websocket 程式展示前端輸入、後端接收與輸出、對話紀錄儲存於 mLab MongoDB