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
Guillermo Rauch
1ec766799f
test: fix helper to take options
2012-12-23 23:24:19 -03:00
Guillermo Rauch
ae516a3f06
test: added args + callback events tests
2012-12-18 17:27:22 -03:00
Guillermo Rauch
ecf937c775
test: style
2012-12-18 17:27:09 -03:00
Guillermo Rauch
d1def44858
test: added event ack tests
2012-12-18 17:23:53 -03:00
Guillermo Rauch
6b3cdd7c9c
test: added test for event emitting with send
2012-12-18 15:25:56 -03:00
Guillermo Rauch
3038ce5526
test: added event emitting test
2012-12-18 15:24:24 -03:00
Guillermo Rauch
c929f8c7fb
test: added socket event reception test
2012-12-18 15:18:26 -03:00
Guillermo Rauch
1d8a747773
test: added socket#send test
2012-12-18 15:15:42 -03:00
Guillermo Rauch
169046e026
test: added disconncet(true) test
2012-12-18 14:58:09 -03:00
Guillermo Rauch
e724e7bdf6
test: added test for of second parameter
2012-12-17 14:25:40 -03:00
Guillermo Rauch
06e7df4eb2
test: added multiplexing tests
2012-12-17 12:45:26 -03:00
Guillermo Rauch
28a19bfb43
test: added second parameter to helper to aid w testing namespaces
2012-12-17 12:45:13 -03:00
Guillermo Rauch
01e73669f9
test: added connect namespace event test
2012-12-17 09:00:17 -03:00
Guillermo Rauch
3afe5e3032
test: added basic namespace tests
2012-12-17 08:43:03 -03:00
Guillermo Rauch
3063241eba
test: fixed test for engine.io attachment
2012-12-17 01:09:50 -03:00
Guillermo Rauch
f1e2af3d91
test: added client creation helper
2012-12-17 00:18:39 -03:00
Guillermo Rauch
98c4bb6955
test: fixed style
2012-12-16 19:13:02 -03:00
Guillermo Rauch
6d0b1a5117
test: basic namespaces tests
2012-12-16 19:12:03 -03:00
Guillermo Rauch
cb806c0d4e
test: attachment and client serving tests
2012-12-16 18:58:17 -03:00
Guillermo Rauch
b6a4899689
initial 1.0 commit
2012-12-13 12:14:54 -03:00
Guillermo Rauch
ab2a0b6a8b
test: removed protocolVersion private api from tests
2012-08-13 16:14:28 -07:00