Guillermo Rauch
4e4bbf918e
fix protocol violations and improve error handling ( fixes #1880 )
2014-11-21 04:16:37 +01:00
Guillermo Rauch
b49f5c82f2
syntax
2014-11-21 04:15:42 +01:00
Alex Jeng
136fe960b7
Made comments more consistent
2014-10-05 22:10:13 -07:00
Tony Kovanen
1b4f6a5324
Merge pull request #1777 from akamensky/dynamic-cors
...
Dynamic cors
2014-09-22 13:38:14 -06:00
Tony Kovanen
fa4fa3365a
Merge pull request #1690 from rase-/fix/resource-option-bc
...
Fix resource option BC with the set function
2014-09-22 12:27:35 -06:00
Tony Kovanen
ae9d5277a9
Add test to check that empty rooms are autopruned.
2014-09-20 11:12:26 -06:00
akamensky
1b90ae2587
Added test coverage for Server#origins(function) for dynamic CORS
2014-09-12 11:13:51 +08:00
Anup Bishnoi
f56d4acce6
testing for equivalence of namespaces starting with / or without
2014-08-19 22:19:50 +00:00
Anup Bishnoi
b3cb18d910
Added relevant tests
...
"" and "/" namespaces are checked for equivalence on server and client
2014-08-18 22:47:06 -04:00
Guillermo Rauch
a40068b5f3
Merge pull request #1688 from fdellabetta/server_side_namespace
...
client cannot connect to non-existing namespaces
2014-08-01 13:45:32 +01:00
Tony Kovanen
624e7cb14f
Fix splice arguments and socket.rooms value update in socket.leaveAll.
...
Hat tip @Marreck
2014-08-01 13:20:18 +02:00
Tony Kovanen
b4954d767a
Take the instance stored path value into account when attaching to eio if no option specified to attach directly
2014-07-23 19:58:44 +03:00
Filippo Della Betta
f6eb53f5e1
client cannot connect to non-existing namespaces
2014-07-22 13:58:13 +02:00
Tony Kovanen
54726105cb
Fixed handshake object address property and made the test case more strict.
2014-07-19 04:43:03 +03:00
Guillermo Rauch
480b1a05bd
test: added failing case for socket.disconnect and nsps
2014-07-15 10:52:23 -07:00
Guillermo Rauch
968e94e42b
Merge pull request #1655 from ysmood/fix_etag_header
...
We should use the standard http protocol to handler the etag header
2014-06-30 23:32:23 -07:00
Guillermo Rauch
c18ed5fd4d
Merge pull request #1646 from narcisoguillen/close_sio
...
Close sio
2014-06-30 19:10:26 -07:00
Narciso Guillen
4b89bce182
use ephemeral ports
2014-06-30 15:49:08 -05:00
Yad Smood
8c19eef07a
fix: We should use the standard http protocol to handler the etag
...
header.
2014-06-29 21:42:57 +08:00
Narciso Guillen
a1feca1bd3
Add close specs
2014-06-23 21:03:31 -05:00
Tony Kovanen
0954301d7e
Add test case for checking that reconnect_failed is fired only once upon failure
2014-06-21 17:14:15 +03:00
Tony Kovanen
71c253e992
Added test for duplicate events after manual reconnects
2014-06-19 01:49:00 +03:00
Kevin Roark
5812ddf2b0
added the client emit-buffer test
2014-06-01 23:20:42 -07:00
Kevin Roark
397944fcbe
big file tests
2014-05-30 20:40:44 -07:00
Guillermo Rauch
99f1ac9aae
Merge pull request #1563 from rase-/fix/no-disconnect-fired-for-nsp
...
Fix namespace iterator in disconnect
2014-05-30 16:40:59 -07:00
Tony Kovanen
ee8d0fbae0
Fix namespace iterator in disconnect
2014-05-31 02:25:28 +03:00
Tony Kovanen
318ae87f50
Add test case for emitting multibyte chars
2014-05-31 01:45:31 +03:00
Tony Kovanen
10adcb089e
Added socket.handshake BC object
2014-05-24 17:02:47 +03:00
Guillermo Rauch
0842729c1f
test: temporarily removing parser test
2014-04-28 11:16:59 -07:00
Kevin Roark
ce68fb3105
Merge branch 'upstream' into add/protocol-check
2014-04-14 12:43:01 -04:00
Tony Kovanen
f830899e39
Added backwards compatible settability of engine.io maxHttpBufferSize
...
Updated readme
2014-04-12 12:02:52 +03:00
Guillermo Rauch
3444f017bc
Merge pull request #1492 from kevin-roark/add/query-test
...
Added a test to check access to client query params
2014-04-11 10:57:04 -07:00
Kevin Roark
0588dc0fc4
Added a test to check access to client query params
...
It fails with the current upstream client! There is a pending PR to
make this test pass though.
2014-04-11 13:19:19 -04:00
Kevin Roark
f8b4d87331
added test that server and client using same protocol
2014-04-10 14:45:32 -04:00
Tony Kovanen
d33553a4bd
Added support for setting allowed origins
2014-04-09 22:34:53 +03:00
Tony Kovanen
656047536a
The set function in server can be used to set some attributes for backwards compatibility
2014-03-26 00:04:22 +02:00
Kevin Roark
a5ff1d854e
added some new tests, including binary with acks
2014-03-06 16:58:21 -05:00
Guillermo Rauch
12733a8759
test: fix global leakage
2014-03-03 14:22:51 -08:00
Kevin Roark
c2bf0ea700
Added binary support to broadcasting of events
...
lib/namespace.js previously was not considering whether an event had
binary data and was giving all events parser.EVENT type -- now it uses
the has-binary-data module to set the event type appropriately.
Then, after this fix there was a problem with lib/adapter.js -- because
socket.io-parser modifies the packet object in its encoding, the sockets
after the 1st in a broadcast were not getting the correct data. To fix
this, the data is encoded once in adapter, and then the encoded data
is passed to each of the sockets.
lib/socket.js and lib/client.js were updated to allow for the above. The
.packet method of each now takes an optional second "preEncoded" parameter
-- if this is true, then client skips the encoding and just writes the
packet argument directly to engine.
test/socket.io.js was updated to add two new tests that test
multi-messaging of events with binary data.
2014-03-02 22:15:16 -05:00
Kevin Roark
745ee03102
Added binary support to socket.io
...
This is a squash of about 25 commits, and here is a summary:
adamreis added initial binary test with the doge image.
kevin-roark updated binary tests and wrote some binary encoding protocol.
kevin-roark replaced the custom binary encoding with msgpack because we
have to handle arbitrary json that contains binary.
adamreis added some 'crazy' tests for emmiting and receiving events with
several types of data.
kevin-roark updated client.js to use socket.io-protocol's async encoding
Did a bunch of upstream merging.
2014-02-19 13:46:39 -05:00
Naoyuki Kanezawa
a3e1b0658f
middlewares of main namespace should be called first
2014-02-04 04:00:24 +09:00
Guillermo Rauch
6305ebe8aa
test: extend client serving tests
2014-01-10 11:47:04 -03:00
Guillermo Rauch
48936231ea
index: add support for string port numbers
2013-12-26 21:30:33 -03:00
Guillermo Rauch
83208b6e11
socket: add conn, client, request getters
2013-12-24 21:36:48 -03:00
Guillermo Rauch
7b2a71ac4f
server: add listen
2013-12-24 20:49:21 -03:00
Guillermo Rauch
da844159d9
namespace: jshint friendly usage of reserved keyword for backwards-compatibility
2013-12-24 20:10:16 -03:00
Guillermo Rauch
ecca4ee738
use serveClient in favor of static for broader jshint compliance
2013-12-24 20:00:46 -03:00
Guillermo Rauch
cef1583a64
test: middleware tests
2012-12-24 19:50:49 -03:00
Guillermo Rauch
46d069b3cc
test: added room tracking test
2012-12-24 15:07:23 -03:00
Guillermo Rauch
f605b365b4
test: added broadcasting / namespace emit tests
2012-12-23 23:24:35 -03:00