npm install
node index.js
可以跑很多份,現在一個client 只會連上丟訊息, 發呆
node client.js
網頁連到這邊 https://www.websocket.org/echo.html 網址連到自己的ip, port 預設9999, 所以是 ws://localhost:9999
npm install
node index.js
可以跑很多份,現在一個client 只會連上丟訊息, 發呆
node client.js
網頁連到這邊 https://www.websocket.org/echo.html 網址連到自己的ip, port 預設9999, 所以是 ws://localhost:9999