diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-31 12:25:55 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-31 12:30:19 -0700 |
commit | 52dae3e9b26dd8b4c6ce7989505c41532c090051 (patch) | |
tree | 8190d1547283bfb0250981949055f4cbc6c61b54 /src/library_sockfs.js | |
parent | ef047e68ac7925b76c9bee7e83b43f2bc1f9fb77 (diff) |
- temp fix for test_enet
- added debugging info to websocket backend
Diffstat (limited to 'src/library_sockfs.js')
-rw-r--r-- | src/library_sockfs.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library_sockfs.js b/src/library_sockfs.js index 8e7a9579..8d2fd9d0 100644 --- a/src/library_sockfs.js +++ b/src/library_sockfs.js @@ -146,6 +146,10 @@ mergeInto(LibraryManager.library, { } } +#if SOCKET_DEBUG + Module.print('websocket adding peer: ' + addr + ':' + port); +#endif + var peer = { addr: addr, port: port, @@ -160,6 +164,9 @@ mergeInto(LibraryManager.library, { // us to override the ephemeral port reported to us by remotePort on the // remote end. if (sock.type === {{{ cDefine('SOCK_DGRAM') }}} && typeof sock.sport !== 'undefined') { +#if SOCKET_DEBUG + Module.print('websocket queuing port message (port ' + sock.sport + ')'); +#endif peer.send_queue.push(new Uint8Array([ 255, 255, 255, 255, 'p'.charCodeAt(0), 'o'.charCodeAt(0), 'r'.charCodeAt(0), 't'.charCodeAt(0), |