63 Commits

Author SHA1 Message Date
Guillermo Rauch
204576c006 Make these 2 tests work both on 0.4 and 0.6 2012-02-26 21:51:22 -03:00
Guillermo Rauch
a01e7e2256 Make tests pass on 0.4 2012-02-26 18:21:25 -03:00
Guillermo Rauch
47cfa5aadf Fixed tests. All 250 passing. 2012-02-26 17:14:06 -03:00
einaros
2d5dcc1a8a whitespace cleanup 2011-11-14 17:57:34 +01:00
einaros
27714d7286 fixes manager.js failure to close connection after transport error has happened 2011-11-14 17:40:16 +01:00
einaros
ffef944dd5 added implicit port 80 for origin checks. fixes #638 2011-11-14 09:45:44 +01:00
einaros
c88ea9ed61 fixed websocket testing, removed seemingly irrelevant tests 2011-10-25 10:42:18 +02:00
einaros
b3df2836e9 properly cleaned up async websocket / flashsocket tests, after patching node-websocket-client 2011-10-08 12:02:31 +02:00
Guillermo Rauch
51782fc5d7 Fixed websocket tests. 2011-10-07 11:07:33 -07:00
Guillermo Rauch
11f1a7c491 Merge pull request #347 from 3rd-Eden/socket.transport
Expose socket.transport
2011-10-07 10:07:05 -07:00
einaros
2c3c73f045 corrected origin header name in test 2011-10-02 16:37:14 +02:00
einaros
54fc513fc9 fixes #553 - (re)verify origin in websocket transport implementations 2011-10-02 16:34:09 +02:00
einaros
050fcf7a83 websocket draft HyBi-16 support 2011-10-01 14:39:27 +02:00
einaros
ab9a5a1578 added test to ensure that websocket still identifies as .. websocket 2011-09-20 18:51:36 +02:00
Arnout Kazemier
a631f86b3b Merged with upstream master 2011-07-31 10:22:54 +02:00
Guillermo Rauch
0b9b28d251 Merge pull request #409 from 3rd-Eden/bug/407
Fix for #407
2011-07-30 17:59:06 -07:00
Arnout Kazemier
b694ee68c9 Added testcase to prevent #374 from happening again 2011-07-24 13:21:30 +02:00
Arnout Kazemier
a821cce390 Fix for #407 2011-07-22 22:52:20 +02:00
Arnout Kazemier
34bd9d9092 Fix for bug #376
Also added unit test to prevent it from happening in the future
2011-07-18 23:06:48 +02:00
Arnout Kazemier
81d71ebb08 Fixed port number 2011-07-12 09:52:53 +02:00
Arnout Kazemier
9cfdb8ed97 Expose socket.transport 2011-07-06 00:10:25 +02:00
Arnout Kazemier
d39d1401c4 Fixed broken test suite 2011-07-05 00:59:31 +02:00
Arnout Kazemier
af5960bc28 address.remoteAddress -> address.address just like node's 2011-07-02 19:50:18 +02:00
Arnout Kazemier
65d7229079 .address() returned server ip >_<, solved with this patch and adjusted the test
suite
2011-07-02 17:49:32 +02:00
Arnout Kazemier
16518c0715 Added a small indicator + test suite so you can see how a user is disconnected 2011-06-29 21:45:14 +02:00
Arnout Kazemier
45f2718954 Cleaned up the websocket test 2011-06-28 21:05:53 +02:00
Guillermo Rauch
4e4199c15e Added test for SocketNamespace#clients 2011-06-28 13:33:09 -03:00
Guillermo Rauch
c9d21c5ff5 Fixed tests 2011-06-28 08:29:42 -03:00
Guillermo Rauch
9740b42866 Added test for Socket#handshake. 2011-06-28 07:37:25 -03:00
Guillermo Rauch
a517efcaca Fixed signature of Socket#join in tests
Fixed style
2011-06-27 15:52:35 -03:00
Guillermo Rauch
8f6860b155 Make sure to close websocket clients on session tests 2011-06-27 15:52:17 -03:00
Guillermo Rauch
13e7f4087a Exports WSClient 2011-06-18 10:13:38 -03:00
Guillermo Rauch
c6185ebb0d Adapted tests. 2011-06-12 19:50:40 -03:00
Guillermo Rauch
b9ab031f0e Added callback to io.listen.
Removed race condition in websocket room tests (for real this time)
2011-06-12 12:35:18 -03:00
Guillermo Rauch
7d2efd99ab Added timeout for room messages. 2011-06-12 09:03:44 -03:00
Guillermo Rauch
e7b4d6a38d Fixed race condition in tests. 2011-06-12 08:38:06 -03:00
Guillermo Rauch
a5a7ec4dbd Adapted websocket tests for connect packet. 2011-06-10 18:16:37 -03:00
Guillermo Rauch
f8697e22ff Fix json-p handshake. 2011-06-02 16:43:13 -03:00
Guillermo Rauch
14c96c143c Removed console.log statements 2011-05-25 01:29:15 -07:00
Guillermo Rauch
bd1970606c Adjusted timeouts in websocket tests to avoid race conditions. 2011-05-25 01:27:01 -07:00
Guillermo Rauch
faa00b8b2d Added test for broadcasting events in rooms. 2011-05-25 00:57:37 -07:00
Guillermo Rauch
62d3e6341e Added test for broadcasting json to a room. 2011-05-25 00:54:57 -07:00
Guillermo Rauch
7678acc8e6 Added broadcast with to test. 2011-05-25 00:51:10 -07:00
Guillermo Rauch
d2d481ca8b Added test for broadcasting an event. 2011-05-25 00:33:01 -07:00
Guillermo Rauch
9f4f52beb4 Added test for broadcasting json.
Removed unnecessary connections counter in broadcast tests.
2011-05-25 00:28:54 -07:00
Guillermo Rauch
41ab26b202 Added broadcast test. 2011-05-25 00:21:42 -07:00
Guillermo Rauch
be21ca2f19 Added test for sending json to all clients in a namespace. 2011-05-24 23:55:15 -07:00
Guillermo Rauch
60dec3dd83 Add test for sending json to a room. 2011-05-24 23:52:54 -07:00
Guillermo Rauch
0f0abab380 Added test for emitting an event to a room. 2011-05-24 23:50:18 -07:00
Guillermo Rauch
c3936cb5f9 Add test for sending to all clients in a given room. 2011-05-24 23:47:41 -07:00