ID -> OPEN

This commit is contained in:
Michelle Bu 2013-02-07 22:30:43 -08:00
parent 728b21278d
commit 804fcdd9e8

View File

@ -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;