Commit Graph

83 Commits

Author SHA1 Message Date
Guillermo Rauch
e398000c0e Implemented Polling#doClose 2012-01-03 12:59:07 -08:00
Guillermo Rauch
397ce64e80 Implemented Polling#write. 2012-01-03 12:58:46 -08:00
Guillermo Rauch
144ae3ef54 Fixed docs 2012-01-03 12:58:34 -08:00
Guillermo Rauch
c1316e0a52 Implemented Polling#send 2012-01-03 12:58:16 -08:00
Guillermo Rauch
3875089c3b Fixed docs 2012-01-03 12:58:07 -08:00
Guillermo Rauch
d8194a5cf0 Implemented Polling#flush 2012-01-03 12:57:49 -08:00
Guillermo Rauch
8f837a5720 Refactored Polling#onData 2012-01-03 12:55:09 -08:00
Guillermo Rauch
00291ee50a Fixed docs 2012-01-03 12:54:58 -08:00
Guillermo Rauch
4c02b31425 Implemented onDataRequest. 2012-01-03 12:52:30 -08:00
Guillermo Rauch
a9ecdcf771 Fixed docs 2012-01-03 12:52:17 -08:00
Guillermo Rauch
fc70102f79 Added poll request handler 2012-01-03 10:43:47 -08:00
Guillermo Rauch
93d32fa925 Fixed docs 2012-01-03 10:43:08 -08:00
Guillermo Rauch
d02023212d Override onRequest to handle both GET and POST requests. 2012-01-03 10:42:48 -08:00
Guillermo Rauch
34d4892b1b Fixed style 2012-01-03 10:42:40 -08:00
Guillermo Rauch
df82cbad1c Regularized Polling constructor. Added debug scope 2012-01-03 10:41:58 -08:00
Guillermo Rauch
23e434f5b4 Refactored transports/index
- Transports now expose `upgradesTo`
- Moved polimorphic polling constructor here
2012-01-03 10:41:15 -08:00
Guillermo Rauch
b7a9919ec5 Fixed style 2012-01-03 10:41:01 -08:00
Guillermo Rauch
e266c4a718 Refactored Transport 2012-01-03 10:40:17 -08:00
Guillermo Rauch
cf0550ac67 Added defenses for onClose and close. 2012-01-03 10:39:48 -08:00
Guillermo Rauch
cce20d5e16 Refactored rasons for close 2012-01-03 10:39:29 -08:00
Guillermo Rauch
10cfe1bf86 Refactored clearTransport 2012-01-03 10:39:07 -08:00
Guillermo Rauch
8407a97aac Refactored setTransport. 2012-01-03 10:38:40 -08:00
Guillermo Rauch
a9bcf6be09 Fixed ping logic 2012-01-03 10:38:01 -08:00
Guillermo Rauch
f25a69e363 Added debug line 2012-01-03 10:37:50 -08:00
Guillermo Rauch
fdcaf361aa Added defense for packets after socket is closed 2012-01-03 10:37:23 -08:00
Guillermo Rauch
f66bd79eb4 Fixed handshake packet 2012-01-03 10:37:10 -08:00
Guillermo Rauch
61ec2d92dc Keep track of request that originated socket. 2012-01-03 10:36:49 -08:00
Guillermo Rauch
817ddee41f Initialized debug scope for Socket 2012-01-03 10:36:30 -08:00
Guillermo Rauch
8e9d163666 Refactored onWebSocket to consider the possibility of a websocket handshake. 2012-01-03 10:36:10 -08:00
Guillermo Rauch
b58a5e830b Refactored handshake to allow ws and non-ws handshakes. 2012-01-03 10:35:33 -08:00
Guillermo Rauch
fa7bea93b5 Refactored handleRequest 2012-01-03 10:35:17 -08:00
Guillermo Rauch
35fa0f76db Added debug to handleRequest 2012-01-03 10:34:52 -08:00
Guillermo Rauch
5fcac6e437 Added debug to Server#close 2012-01-03 10:34:30 -08:00
Guillermo Rauch
2d53e5fd85 Implemented Server#close 2012-01-03 10:34:08 -08:00
Guillermo Rauch
c801ff13d5 Make sure to not include non-digits in generated id. 2012-01-03 10:33:13 -08:00
Guillermo Rauch
12ccb6fcf1 Fixed Server#verify 2012-01-03 10:32:49 -08:00
Guillermo Rauch
ba3a85cd31 Simplified transport upgrade possibilities computation 2012-01-03 10:32:25 -08:00
Guillermo Rauch
2819a0c4cf Make Server inherit from EventEmitter 2012-01-03 10:32:06 -08:00
Guillermo Rauch
9c5384f44b Do not cache transport names to allow modification of object.
Added clientsCount property
2012-01-03 10:31:29 -08:00
Guillermo Rauch
fb121a9474 Added debug for debugging 2012-01-03 10:31:01 -08:00
Guillermo Rauch
5e0dd8bb35 Upon http server close, close all engine open clients (attach) 2012-01-03 10:30:23 -08:00
Guillermo Rauch
d7c1ff51c3 Documented client close event arguemnts. 2012-01-03 10:30:05 -08:00
Guillermo Rauch
3d97e1c45e Documented Socket properties. 2012-01-03 10:29:41 -08:00
Guillermo Rauch
32f2d57f7d Documented close event arguments 2012-01-03 10:29:27 -08:00
Guillermo Rauch
2d13524c6c Documented public Server methods 2012-01-03 10:29:13 -08:00
Guillermo Rauch
ff50d1d19f Added Server#clientsCount property 2012-01-03 10:28:49 -08:00
Guillermo Rauch
8a61a1c6b0 Added engine#Transport and engine#transports as public API 2012-01-03 10:28:28 -08:00
Guillermo Rauch
7d28a1e362 Added socket interface. 2011-12-29 13:14:39 -05:00
Guillermo Rauch
3a980d9e67 Added Server (manager) interface. 2011-12-29 13:13:38 -05:00
Guillermo Rauch
150f848480 Fixed style 2011-12-29 13:13:22 -05:00