將express 交給SocketServer 開啟WebSocket 的服務. const wss = new SocketServer({ server }). //當WebSocket 從外部連結時執行. wss.on('connection', ws => {.
確定! 回上一頁