Damien Arrachequesne
dfe65e3b3b
feat: add an extraHeaders option
...
Similar to the option of the JS client:
```java
opts = new Socket.Options();
opts.extraHeaders = singletonMap("authorization", singletonList("bearer abcd"));
socket = new Socket(opts);
```
Note: the refactor of the options (similar to [1]) will be done in a
future step.
[1] 5f47a50ee5
2020-12-11 14:20:45 +01:00
Damien Arrachequesne
41f89a38b7
feat: add support for Engine.IO v4
...
Reference: https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
2020-12-11 14:19:59 +01:00
Damien Arrachequesne
9a7176bae6
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Note: the certificate was updated because it failed with newer Node.js versions
```
_tls_common.js:129
c.context.setCert(cert);
^
Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
at Object.createSecureContext (_tls_common.js:129:17)
at Server.setSecureContext (_tls_wrap.js:1328:27)
```
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-maven
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2020-12-08 11:18:16 +01:00
nkzawa
1b3c795210
update parser to not utf8 encode for string payloads
2017-07-13 12:47:00 +09:00
nkzawa
e4f1a56cfc
test: shutdown okhttpclient
2017-07-12 12:30:12 +09:00
nkzawa
115f32171d
parser: check empty arg
2017-07-11 18:16:49 +09:00
Yu-Hsuan Lin
c817af5b22
Options for inject okhttp Call/WebSocket factory
2017-05-02 17:07:43 +08:00
nkzawa
330bf99dc3
test: use TLSv1 for node 0.12 or higher
2016-06-13 21:40:04 +09:00
nkzawa
d876b6c1bd
replace timestamp with yeast
2016-01-31 01:13:03 +09:00
nkzawa
109fcef0e1
implement yeast
2016-01-31 00:59:12 +09:00
nkzawa
9363039a71
improve ipv6 support, add tests
2016-01-30 20:36:28 +09:00
nkzawa
45977f1a90
check lone surrogate (compatible with utf8.js v2.1.0)
2015-10-11 01:10:06 +09:00
nkzawa
acddf2f69c
move package name
2015-08-31 02:34:28 +09:00