Guillermo Rauch
72497517d3
Fixed multipart heartbeat test
2010-10-24 15:17:02 -03:00
Guillermo Rauch
e66751f65a
Finished json encoding test
2010-10-24 15:11:49 -03:00
Guillermo Rauch
39a558ee3d
Look for the heartbeat in the decoded message
2010-10-24 14:57:20 -03:00
Guillermo Rauch
4eda3d374d
Refactored websocket transports tests to match polling/multipart helpers
...
Make sure to close client/server in heartbeat test
2010-10-24 14:54:11 -03:00
Guillermo Rauch
a65326e640
Added gitignore
...
Added coverage testing to Makefile
Added heartbeat test to multipart
2010-10-24 12:50:34 -03:00
Guillermo Rauch
3ecb37de17
Added buffered messages test for multipart
...
Added assertions for `connected` property for all the tests
2010-10-20 13:47:59 -03:00
Guillermo Rauch
6a6779697d
Multipart clients tracking test
2010-10-20 04:07:40 -03:00
Guillermo Rauch
6ad4df3f64
Multipart client>server message sending test
...
Make sure to only close the client stream when the roundtrip is complete
2010-10-20 04:02:25 -03:00
Guillermo Rauch
1defee7e6c
Multipart connection and handshake tests:
...
- Implemented HTTP client on top of net.Stream with multipart boundary parsing for testing
- Test for connection / server>client message sending
2010-10-20 03:48:09 -03:00
Guillermo Rauch
148aa74a29
Removed unnecessary check for this.connection (since we now access the socket through req.connection for all transports)
...
Started on multipart tests
2010-10-19 15:33:57 -03:00
Guillermo Rauch
d624ef3ea8
Test for duration parameter
...
Close the server
2010-10-19 15:06:06 -03:00
Guillermo Rauch
25f597a9f8
Added make example to Makefile
...
Added clients tracking test for long polling
Added message buffering test for long polling
2010-10-19 14:18:34 -03:00
Guillermo Rauch
c365c601f0
Improve this.request/this.response/this.connection
...
Add 'end' listener onConnect, applies to all transports
Improved error handling onConnect
Remove legacy `flush` calls
Removed unnecessary closeTimeout clearing in jsonp polling
2010-10-18 20:13:57 -03:00
Guillermo Rauch
f0e5643533
Fix for this.connection
...
Clean up in websocket transport
2010-10-18 19:17:08 -03:00
Guillermo Rauch
7fbb069eaa
Make sure to close on disconnect if _open = true
...
Clear disconnection timeout on disconnection (double check)
Make sure to clear closeTimeout for polling transports on close.
2010-10-18 18:15:55 -03:00
Guillermo Rauch
6712d71a2e
Replaced empty with null in log option
...
Comma first style for client serving tests
2010-10-18 18:05:32 -03:00
Guillermo Rauch
57e9b41102
Corrected options overriding order
2010-10-18 17:10:39 -03:00
Guillermo Rauch
080e8944a3
Re-enabled serving static files test
...
Changed handling of options so that polling defaults are in the respective transports
Switched to comma-first style
2010-10-18 17:05:19 -03:00
Guillermo Rauch
8b52e1f8ed
Long polling integration tests
...
- Utility functions
- Connection and handshake test
2010-10-17 21:29:19 -03:00
Guillermo Rauch
66a6e6d37e
Test for heartbeat message
2010-10-17 18:08:41 -03:00
Guillermo Rauch
464a1c6448
Added heartbeat timeout test
...
Support for listener#log false
2010-10-17 18:06:53 -03:00
Guillermo Rauch
18a0b99282
Corrected onConnect signature to support a request and a socket, or a request and a response.
...
Removed error checking for non-upgradeable sockets, since they'll be destroyed, and error handling is done onConnect
Added tests for websocket client tracking
Added tests for websocket message buffering
Make sure disconnect timeout is cleared on websocket re-connect
2010-10-17 05:41:29 -03:00
Arnout Kazemier
52d7c53e46
Updated the flash socket with error detection, and readystate detection.
...
This is needed because when a error occures we close down the connection,
and the stream will become unwriteable.
Also changed to a single write instead of multiple writes.
2010-10-06 10:00:07 +02:00
Guillermo Rauch
999eba68dc
Moved error handling to onConnect to avoid messing with the http.Server global error handlers
...
Do special error handling for websocket
2010-10-04 16:48:54 -03:00
Guillermo Rauch
af81e0ca52
Merge branch 'master' of git://github.com/3rd-Eden/Socket.IO-node
2010-10-04 16:43:20 -03:00
Guillermo Rauch
6f37628b4f
Clearing heartbeat interval upon closing the connection
...
Commenting client serving test (made the tests hang)
Make sure to close the netserver if all listeners http servers are closed
2010-10-04 16:41:48 -03:00
Arnout Kazemier
e2bb868ed2
Added error listeners, if theses errors are not correcly caught, they will leak memory.
...
This caused http://speedo.no.de/ to go up from 1mb per connection after a ECONNECTRESET message
2010-10-04 21:21:53 +02:00
Arnout Kazemier
eeab2fd153
Sometimes the listener.options is not available, and creates uncaught exception.
...
This small if statement solves it.
2010-10-04 21:10:02 +02:00
Guillermo Rauch
30f0521461
Adapting websocket client api to ev.data
...
Closing as opposed to disconnecting when websocket errors out
2010-10-03 18:44:17 -03:00
Guillermo Rauch
36463a245e
Moved dependencies into support/ from tests/support
...
Adapted Makefile
2010-10-03 18:24:16 -03:00
Guillermo Rauch
0dd9cc3ada
_decode and _encode moved to utils
...
Removed accidental 1==2 for serving the not modified status code for the client
Finished websocket test
2010-10-03 18:19:21 -03:00
Guillermo Rauch
2dd8c58506
Re-enabling all tests
2010-10-03 15:59:06 -03:00
Guillermo Rauch
4465d3416b
Tabs => spaces
2010-10-03 15:40:06 -03:00
Guillermo Rauch
b5deea4855
Converted tabs into spaces
...
Typo fix in flash socket warning message
2010-10-03 15:39:24 -03:00
Guillermo Rauch
a883f17fac
Close the server upon timeout
...
Starting converting back to spaces to comply with node coding standards
2010-10-03 15:32:51 -03:00
Guillermo Rauch
96603825d1
Merge branch 'master' of git://github.com/maccman/Socket.IO-node
2010-10-01 11:24:08 -03:00
Guillermo Rauch
ee2a71755f
Merge branch 'master' of git://github.com/SlNPacifist/Socket.IO-node
2010-09-29 12:28:08 -03:00
slnpacifist
1907b41637
returned data.length in listener.js since data is of type buffer
2010-09-29 19:58:55 +07:00
Guillermo Rauch
50f98107a4
Node required version
2010-09-28 13:09:47 +02:00
slnpacifist
d2ead47fca
added encode=UTF-8 in jsonp-polling.js and xhr-polling.js since UTF-8 is the default encoding for http.ServerResponse.write
...
replaced string.length with Buffer.byteLength in jsonp-polling.js, listener.js and xhr-polling.js because content-length header requires number of bytes and not the number of symbols in string
2010-09-28 17:28:31 +07:00
Alex
4803d7b888
Merge branch 'master' of github.com:maccman/Socket.IO-node
2010-09-28 00:28:00 +01:00
Alex MacCaw
607fe38952
Fix COR headers/requests for different ports on Safari.
2010-09-27 06:46:19 -07:00
Alex MacCaw
fcba035330
Fix COR headers/requests for different ports on Safari.
2010-09-27 06:45:53 -07:00
Guillermo Rauch
c1e08318ca
Clearing the references to request, response and connection upon disconnect.
2010-09-26 16:29:51 +02:00
Guillermo Rauch
9cb8e3761b
Updated client
2010-09-25 11:20:58 +02:00
Guillermo Rauch
965bc9797a
Updating client
2010-09-24 06:05:27 +02:00
Alex
c06de0953b
add package.json for npm
2010-09-23 11:34:31 +01:00
Guillermo Rauch
17d5ab7fe7
Updated client
2010-09-20 16:29:45 -07:00
Guillermo Rauch
880fb2b71d
Updated client
...
[ocd] fix
2010-09-20 16:26:52 -07:00
Guillermo Rauch
0464e4c1b5
Updated client
2010-09-20 15:42:54 -07:00