소스 검색

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;