var ws = new WebSocket('ws://localhost:8080/'); ws.onmessage = function(event) { console.log(event.data); };. 上面是客户端的JavaScript 代码, ...
確定! 回上一頁