James Coglan
|
17e2bd4084
|
Messages should be queued when the driver is in the 'pre-connecting' state, as the client is initially.
|
2013-05-17 11:48:36 +01:00 |
|
James Coglan
|
3dfaaf497f
|
Expose the isSecureRequest() method.
|
2013-05-17 11:47:56 +01:00 |
|
James Coglan
|
97451f81ab
|
Set status and headers as soon as we have them so they're available if there is an error.
|
2013-05-12 14:44:17 +01:00 |
|
James Coglan
|
de001a0f54
|
Remove a blank line.
|
2013-05-12 01:45:56 +01:00 |
|
James Coglan
|
26c4873f3e
|
Apply offset to the consumed offset from HTTP parsing before we check whether the whole buffer has been used.
|
2013-05-12 01:45:04 +01:00 |
|
James Coglan
|
b2472e89a6
|
Document the Server driver.
|
2013-05-12 01:31:14 +01:00 |
|
James Coglan
|
1124df2bf5
|
Add a Server driver for running WebSockets through a bare TCP server.
|
2013-05-12 01:13:50 +01:00 |
|
James Coglan
|
ea4e289669
|
Add a setHeader() function to allow peers to add headers to their handshake responses.
|
2013-05-11 22:26:20 +01:00 |
|
James Coglan
|
d7c65eedd9
|
Expose the status and headers from the response in the client driver.
|
2013-05-11 21:58:37 +01:00 |
|
James Coglan
|
d594f7d708
|
Include more possible headers as indicators of a secure connection.
|
2013-05-11 21:55:52 +01:00 |
|
James Coglan
|
aa25393a6c
|
Check for GET in isWebSocket() and expose the isSecureRequest() method.
|
2013-05-04 17:27:25 +01:00 |
|
James Coglan
|
88202e66d5
|
Stream.end() should write() if given an empty stream.
|
2013-05-04 17:26:59 +01:00 |
|
James Coglan
|
25c075a408
|
Rename the module to websocket-driver.
|
2013-05-04 16:42:44 +01:00 |
|
James Coglan
|
f16ad50db0
|
Raise an error if the length header is larger than the max int that JS can represent precisely.
|
2013-05-04 13:33:27 +01:00 |
|
James Coglan
|
d716650499
|
Add more robust error handling for Hybi and Client and emit error events when the protocol goes wrong.
|
2013-05-02 00:09:14 +01:00 |
|
James Coglan
|
cbb33e4924
|
Allow default handler options to be overridden.
|
2013-05-01 00:59:54 +01:00 |
|
James Coglan
|
23f296b926
|
Replace the getVersion() method with a version property.
|
2013-05-01 00:55:49 +01:00 |
|
James Coglan
|
b56a960bb2
|
s/addListener/on/
|
2013-05-01 00:24:33 +01:00 |
|
James Coglan
|
f6481422b9
|
Firm up the event system. Make handlers only emit their own events, and then map those to Messages and IO events with a bit of glue. Only emit 'data' when streams are readable, same for 'end'.
|
2013-04-30 23:35:51 +01:00 |
|
James Coglan
|
9975aa089b
|
Use the Node EventEmitter class to publish events.
|
2013-04-30 08:20:14 +01:00 |
|
James Coglan
|
d2e958096c
|
Refer to the draft-76 request body as 'body' rather than 'head'.
|
2013-04-29 22:00:39 +01:00 |
|
James Coglan
|
e9bdd17cef
|
Correct a typo in stream docs.
|
2013-04-29 21:54:52 +01:00 |
|
James Coglan
|
e98eb72c6c
|
Remove comments about Node streams.
|
2013-04-29 21:51:00 +01:00 |
|
James Coglan
|
5dfe9ecdad
|
Return the protocol version from the Client handler.
|
2013-04-29 21:35:57 +01:00 |
|
James Coglan
|
c957874493
|
Make protocol.http() select the right driver for the request.
|
2013-04-29 20:46:17 +01:00 |
|
James Coglan
|
b354dd69fa
|
Implement the draft-76 protocol.
|
2013-04-29 20:27:35 +01:00 |
|
James Coglan
|
c70c5618da
|
Only end the messages stream when we trigger onclose.
|
2013-04-29 19:11:26 +01:00 |
|
James Coglan
|
6c025087f7
|
Emit 'end' from the messages stream when the socket's onclose event runs.
|
2013-04-29 19:08:10 +01:00 |
|
James Coglan
|
9ed82bc0ab
|
Extract the IO and Messages streams and flesh them out to implement backpressure.
|
2013-04-29 19:00:08 +01:00 |
|
James Coglan
|
e3b8033c58
|
Placeholder for draft-76 support just to get the common tests passing.
|
2013-04-29 08:56:05 +01:00 |
|
James Coglan
|
950cd9f1e2
|
Implement and test draft-75.
|
2013-04-29 08:40:05 +01:00 |
|
James Coglan
|
6f7942d5b7
|
Begin writing the draft75 module.
|
2013-04-29 07:48:09 +01:00 |
|
James Coglan
|
41ddd82932
|
Add tests for Hybi and Client handlers and fix some minor bugs.
|
2013-04-28 23:22:05 +01:00 |
|
James Coglan
|
62a0c7597f
|
First steps toward streaming I/O-independent parsing. Implement the Hybi and Client protocol handlers as stateful protcol drivers with two duplex streams, one for messages and one for I/O.
|
2013-04-28 18:55:58 +01:00 |
|