Instead of using apply with the Uint8Array to push the data onto the receive queue, iterate through the binary data and push it an element at a time. Apparently, doing an apply with a very large binary array can blow the stack. Performance-wise this seems equivalent in Chrome 22 and Firefox 16. |
||
|---|---|---|
| .. | ||
| web-socket-js | ||
| VT100.js | ||
| base64.js | ||
| keysym.js | ||
| util.js | ||
| websock.js | ||
| webutil.js | ||
| wsirc.js | ||
| wstelnet.js | ||