-
Notifications
You must be signed in to change notification settings - Fork 0
疑惑点,无法发送多段文本信息
ruandao edited this page Feb 9, 2017
·
1 revision
在浏览器调用
var onOpen = function() {
console.log("Socket opened.");
<!--socket.send("bHi, Server!", "aa", "你好,服务器!");-->
socket.send("Hi, Server!", "aa", "你好,服务器");
},
socket = new WebSocket("ws://127.0.0.1:8089/websocket");
socket.onopen = onOpen;
发现,只有"Hi,Server!" 发送过来,后面的 "aa","你好服务器" 都没有发送过来 用Wireshark抓包,也是没有