Commit Graph

27 Commits

Author SHA1 Message Date
Damien Arrachequesne
e8ffe9d138 fix: ensure the payload format is valid
This commit should prevent some NPE issues encountered after the
parsing of the packet.

Related:

- https://github.com/socketio/socket.io-client-java/issues/642
- https://github.com/socketio/socket.io-client-java/issues/609
- https://github.com/socketio/socket.io-client-java/issues/505
2021-04-27 00:14:24 +02:00
Damien Arrachequesne
48fec45740 refactor: minor cleanup
- replace explicit types by <>
- remove unnecessary interface modifiers
2021-04-26 11:19:02 +02:00
Damien Arrachequesne
5b5b91cb01 test: fix random test failures 2021-04-26 09:12:55 +02:00
Damien Arrachequesne
79cb27fc97 feat: add support for Socket.IO v3
Including:

- 969debe88c
- 6494f61be0
- 132f8ec918
- f8f60fc860

Reference: https://github.com/socketio/socket.io-protocol#difference-between-v5-and-v4
2020-12-15 00:05:22 +01:00
Kushtrim Pacaj
54b73114d1 fix: don't process socket.connect() if we are already re-connecting (#577) 2020-12-10 11:47:20 +01:00
nkzawa
eeadb50aa9 clean up imports 2017-07-14 14:22:44 +09:00
nkzawa
6e5fab39de Merge branch 'master' into fix/compatible-v2 2017-07-14 14:20:39 +09:00
nkzawa
ad4449bfee explicitly clear onDecoded callback 2017-07-14 14:11:27 +09:00
nkzawa
3d98ed9fe9 simplify custom encoder/decoder 2017-07-14 11:50:25 +09:00
Naoyuki Kanezawa
9b5c684349 Merge pull request #423 from sergey-davydov/donotformateventdata
Add condition to log only if fine level is loggable
2017-07-14 11:25:20 +09:00
nkzawa
7279919ef9 enable to implement custom parser 2017-07-14 11:24:43 +09:00
nkzawa
f6bb7678b6 fix generating Id 2017-07-13 21:54:33 +09:00
nkzawa
4811368854 send query on connecti 2017-07-12 01:09:11 +09:00
nkzawa
9d6947a015 bump engine.io-client 2017-07-11 21:54:48 +09:00
Sergey Davydov
229a820bf5 Add condition to log only if fine level is loggable
Even if FINE level is not loggable String.format() works every time and
tries to format string with all the events. Sometimes it causes
OutOfMemory exceptions.
2017-05-28 13:01:18 +03:00
nkzawa
48420a6c6f improve manager disconnection and cleanup 2016-02-01 01:03:49 +09:00
nkzawa
0d4d455704 add ping and pong events 2016-02-01 00:48:57 +09:00
nkzawa
599eb98c6e fix disconnection while in opening state 2016-01-31 23:55:53 +09:00
nkzawa
f7810c19d3 create a new connection when path is the same 2016-01-31 17:33:28 +09:00
Naoyuki Kanezawa
a3f2b8cd00 Merge pull request #259 from DevFactory/release/collection-isempty-fix-1
Code Quality Improvement - Collection.isEmpty() should be used to test for emptiness
2015-12-18 11:51:44 +09:00
Naoyuki Kanezawa
1ef3b2cae7 Merge pull request #258 from DevFactory/release/redundant-field-initializer-fix-1
Code Quality Improvement - Redundant Field Initializer
2015-12-18 11:49:36 +09:00
Christian Ivan
fff5cb3e25 Code Quality Improvement - Constructors should only call non-overridable methods
update
2015-12-06 15:56:21 +07:00
Christian Ivan
2b7a40b96a Code Quality Improvement - Redundant Field Initializer 2015-12-02 17:25:37 +07:00
Christian Ivan
d364404501 Code Quality Improvement - Collection.isEmpty() should be used to test for emptiness 2015-12-02 17:17:46 +07:00
nkzawa
34277c5d47 fix the case reconnection doesn't work 2015-10-11 12:03:58 +09:00
nkzawa
33a47da3f6 bump engine.io-client 2015-08-31 11:25:07 +09:00
nkzawa
d0039f7910 move package name 2015-08-31 03:23:03 +09:00