使用 socket.io 的聊天室範例 來源 範例 -- https://socket.io/get-started/chat 修改:把 jquery 拿掉,改為原生 JS,然後提升到 socket.io 2 版的語法 參考 https://github.com/socketio/socket.io https://github.com/socketio/socket.io-client