浏览代码

ID -> OPEN

Michelle Bu 12 年之前
父节点
当前提交
804fcdd9e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/server.js

+ 1 - 1
lib/server.js

@@ -73,8 +73,8 @@ PeerServer.prototype._initializeWSS = function() {
       }
     } else if (id === undefined) {
       id = self._generateClientId();
-      socket.send(JSON.stringify({ type: 'ID', id: id }));
     }
+    socket.send(JSON.stringify({ type: 'OPEN', id: id }));
 
     // Save the socket for this id.
     self._clients[id] = socket;