Damien Arrachequesne
a0056904c1
[fix] Update path of client file ( #2934 )
2017-05-09 01:36:40 +02:00
Damien Arrachequesne
87b06ad362
[feat] Move binary detection to the parser ( #2923 )
2017-04-25 00:38:07 +02:00
Damien Arrachequesne
01a4623613
[feat] Allow to join several rooms at once ( #2879 )
2017-02-26 09:15:32 +01:00
Damien Arrachequesne
5ae06e6285
[chore] Bump socket.io-adapter to version 1.0.0 ( #2867 )
2017-02-17 07:33:43 +01:00
Damien Arrachequesne
54ff591b07
[feature] Merge Engine.IO and Socket.IO handshake packets ( #2833 )
2017-02-01 15:28:14 +01:00
Damien Arrachequesne
3b92cc2b26
[feature] Allow the use of custom parsers ( #2829 )
2017-01-24 07:10:19 +01:00
Antoine LUCAS
3b5f4339a7
[fix] Use path.resolve by default and require.resolve as a fallback ( #2797 )
...
Browserify doesn't support require.resolve, and as a consequence, makes nexe fail the compilation. This PR attempts to get the path of the socket.io-client file via path.resolve and falls back to the original require.resolve if this file cannot be found.
2017-01-22 07:21:45 +01:00
Tom Atkinson
2258a6a6e3
[fix] Properly close the connection on error ( #2681 )
2017-01-16 08:29:11 +01:00
Tom Atkinson
ad658b8cc2
[perf] Use shared instance of the encoder ( #2825 )
2017-01-16 08:25:52 +01:00
Tom Atkinson
e24434a0a0
[perf] Reset properties instead of deleting them ( #2826 )
...
Deleting properties is a v8 'optimization killer'
2017-01-16 08:23:22 +01:00
Ian Bro
a27802e19e
[fix] Prevent null from being accepted as argument ( #2606 )
2016-12-30 16:22:16 +01:00
Gatsbill
c46d4481bd
[perf] micro-optimisations ( #2793 )
2016-12-30 16:18:09 +01:00
Serhii Sol
1e31769062
[fix] Fixes socket.use error packet ( #2772 )
...
* fix(socket): Fixes socket.use error packet which drops nodejs due to nuances of Nodejs' EventEmitter
* fix(socket): Fixes missing error event on socket
* fix(socket): test fix, should listen for clientSocket instead of server socket
* minor update
2016-12-01 02:25:13 +01:00
Damien Arrachequesne
3c98130f15
[chore] Update client location and serve minified file ( #2766 )
...
Following https://github.com/socketio/socket.io-client/pull/1025 , the
output files are now generated in the dist directory.
2016-11-27 08:24:27 +01:00
Tal Beja
955e5e0d91
[feature] Add a local flag ( #2628 )
...
That new flag will prevent the adapter (redis) from publishing the emit to the pub/sub server.
When several instances of a server receive the same event from a third party (not from a client), each server instance broadcasts the event to all his clients. With the local flag, and the change in the redis adapter, each server instance send the event only to his client, so each client receive only one unique event.
2016-11-24 23:44:52 +01:00
Zhu Liang
0ef55b26d4
[feature] serve sourcemap for socket.io-client ( #2482 )
2016-11-24 23:39:43 +01:00
Jérémy Lal
d48f848bb4
[docs] Comment connected socket availability for adapters ( #2081 )
2016-11-23 15:00:07 +01:00
Luca Tabone
ff2c15de68
[perf] Minor code optimizations ( #2219 )
2016-11-18 02:03:06 +01:00
Julian Grinblat
4c5dbd8824
[fix] Don't drop query variables on handshake ( #2745 )
...
Parameters passed during handshake, such as tokens, were being dropped.
2016-11-16 01:17:19 +01:00
mhmeadows63
e14a10b7ce
[feature] add support for Server#close(callback) ( #2748 )
2016-11-15 21:52:56 +01:00
Alex
5a123beea5
[feature] Add support for socket middleware ( #2306 )
2016-11-05 01:51:29 +01:00
Julian Grinblat
e9f980c475
[feature] Add support for all event emitter methods ( #2601 )
2016-11-05 01:14:21 +01:00
Atanas Palavrov
04fc0f3677
[feature] Loading client script on demand. ( #2567 )
...
Support for the serving of the client script mess with packagers like
browserify, webpack. Especcialy in projects where it is not used at all.
This patch is workaround to avoid that problem in the cases when client
script is not served.
2016-10-30 14:22:00 +01:00
Kenton Varda
d026c00d05
[fix] Make ETag header comply with standard. ( #2603 )
...
The standard says that an ETag must be surrounded in double quotes:
https://tools.ietf.org/html/rfc7232#section-2.3
Although browsers tend to be lenient, omitting the quotes can confuse/break some kinds of proxies and other tools that demand compliant formatting. For example, Sandstorm.io enforces strict HTTP usage for security reasons and will block responses with invalid ETags.
2016-10-30 14:19:00 +01:00
Feram Bot
ccd3376627
[docs] Minor fixes ( #2526 )
2016-10-21 03:21:45 +02:00
Tom Atkinson
e60bd5a4da
[fix] Avoid swallowing exceptions thrown by user event handlers ( #2682 )
2016-10-21 03:16:36 +02:00
davidlondono
b8c60506a6
[docs] Fix JSDoc of optional parameters ( #2465 )
...
Making proper optional Docs for socketIO
2016-10-21 03:02:59 +02:00
Damien Arrachequesne
43d9a4b55d
[feature] Add a 'disconnecting' event to access to socket.rooms upon disconnection ( #2332 )
2016-10-06 23:23:26 +02:00
Guillermo Rauch
fb0253edea
Merge pull request #2422 from nus-fboa2016-si/queryStringFix
...
Fix for Issue #331 on socket.io-client
2016-04-11 08:44:59 -07:00
吳東曄 Wu, Dung-Ie
6d4128750b
stop append /# before id when no namespace
2016-04-02 01:55:53 +08:00
Zheng Weihan
045674de97
remove unnecessary decoder. url.parse already decodes string.
...
add test to test decoding function.
2016-02-14 13:46:26 +08:00
Zheng Weihan
e141e09aaf
change decodeUriComponents calls
2016-02-13 14:28:21 +08:00
Zheng Weihan
5fabe4e780
call decodeURIComponent on query received from client.
...
update package.son to point to latest commit in socket.o-client package (with URI encoder)
2016-02-13 14:10:20 +08:00
Zheng Weihan
c077357eff
add comments to code
2016-02-04 13:27:36 +08:00
Zheng Weihan
13af610f6d
add test for issue #331 on socket.io-client.
2016-01-31 15:44:39 +08:00
Zheng Weihan
7d55724468
refactor parsing of URL in CONNECT packet to use 'url' library.
2016-01-30 09:47:28 +08:00
Zheng Weihan
1d84c55743
fix to issue #331 on socket.o-client.
...
Parses CONNECT packet for query string and replaces query in socket.handshake.
2016-01-28 14:40:05 +08:00
Naoyuki Kanezawa
2a91fd57c7
Merge pull request #2344 from denghongcai/patch-2
...
fix wrong jsdoc
2016-01-17 15:25:32 +09:00
Faizal Pribadi
abe2394a24
fix typo word :)
...
update docs source code
2015-12-20 16:16:42 +07:00
Hongcai Deng
7012ba6c64
fix wrong jsdoc
2015-12-14 15:31:42 +08:00
Damien Arrachequesne
1dfacc6647
Trigger callback even when joining an already joined room
2015-11-27 22:08:18 +01:00
Guillermo Rauch
3b00312fa7
namespace: clear rooms flag after a clients call ( fixes #1978 )
2015-11-23 09:40:57 -08:00
Damien Arrachequesne
09f446eca0
Add hasOwnProperty checks
2015-11-23 15:12:21 +01:00
Damien Arrachequesne
b73d9bea4e
converted arrays to objects
2015-11-22 11:12:40 +01:00
Naoyuki Kanezawa
67d1a67b1c
Merge pull request #2319 from darrachequesne/patch-3
...
Minor fix
2015-11-21 23:21:39 +09:00
Damien Arrachequesne
aae68d74b1
Minor performance optimization
2015-11-20 22:03:03 +01:00
Damien Arrachequesne
a1a1c6657a
Removed unused variable
2015-11-20 22:00:42 +01:00
Guillermo Rauch
2a4f7ae161
Merge pull request #2136 from nkzawa/patch-5
...
Don't set request property
2015-11-20 12:59:05 -08:00
Guillermo Rauch
a39d7c2ae4
Merge pull request #2171 from KevinMartin/patch-1
...
Actually prevent double callbacks...
2015-11-18 12:56:01 -08:00
Guillermo Rauch
b1775b1cb8
Merge pull request #2051 from tobalsgithub/master
...
Allowing a custom function for opts.allowRequest
2015-11-16 13:15:08 -08:00