mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
760bba55186eba039ca00e532f7813d2aea450a2
This allows for web servers to be "hijacked" and used as Web Socket servers (or other). You simply listen for requests as normal, but check if req.upgrade === true If so, this will be the last request of the connection. It's your job now to hijack req.connection and start reading from it. req.upgradeHead is a buffer containing the first part of the new protocol communication (in the case it arrived on the same packet). This needs tests and documentation. API subject to change.
Evented I/O for V8 javascript. To build: ./configure make make install To run the tests: make test To build the documentation and install it, you will need ronn: make doc install To read the documentation: man doc/node.1 See http://nodejs.org/ for more information. For help and discussion subscribe to the mailing list by visiting http://groups.google.com/group/nodejs or by sending an email to nodejs+subscribe@googlegroups.com.
Description