Commit graph

1216 commits

Author SHA1 Message Date
Romain Beaumont
010362ef78
add connect option to createClient for multiple (ping + normal) connections for the proxy examples, use the normal options for pinging in autoVersion to have that option available and fix the proxy examples accordingly 2017-07-19 18:39:25 +02:00
Romain Beaumont
6279ae9afe
fix socks proxy using a socks module that actually works and provide a proper node stream 2017-07-19 17:24:51 +02:00
Romain Beaumont
cab5a329bf
fix http proxy 2017-07-19 16:41:24 +02:00
Romain Beaumont
e9ced90a50 Update client_socks_proxy.js 2017-07-17 15:30:14 +02:00
Romain Beaumont
d8844a5ba1 Update client_http_proxy.js 2017-07-17 15:30:00 +02:00
Romain Beaumont
ed425e775d
add 2 examples : client_http_proxy and client_socks_proxy. fix #185 fix #436 2017-07-13 14:42:42 +02:00
Romain Beaumont
5e64acce36
rename caseCorrect.js to auth.js, fix #383 2017-07-13 14:29:17 +02:00
Romain Beaumont
d9111d982f
add debug in plugin channels, fix #433 2017-07-13 14:27:44 +02:00
Romain Beaumont
216b4d2da3 add note about node-rcon in readme, fix #483 2017-07-13 14:22:42 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
greenkeeper[bot]
4a33bc7ac7 fix(package): update yggdrasil to version 1.0.0
Closes #501
2017-07-12 23:05:06 +02:00
Romain Beaumont
6f644042fe
Release 1.3.2 2017-07-12 13:23:45 +02:00
Romain Beaumont
9c1925a1f2 Merge pull request #500 from PrismarineJS/trying_to_fix_autoversion
trying to fix autoversion in online mode
2017-07-12 13:21:10 +02:00
Romain Beaumont
936a12e6e0
fix ping 2017-07-12 13:17:00 +02:00
Romain Beaumont
eb5764e7ab
fix autoversion in online mode.
Explanation:
in this specific case, we were changing the state of the client to hanshaking (in autoVersion.js) before a connection was made (using setSocket), the consequence is the serializer was already piped to the framer when setSocket was called, and setSocket doesn't unpipe before piping. The consequence of that was the framer was piped 2 times, the packet was sent 2 times and the server kicked us.
My solution is piping the serializer to the framer in Client constructor.
Then if the state is changed, it will anyway automatically unpipe before repiping.

Other places correctly unpipe before piping.

Autoversion is now the default in nmp too
2017-07-12 13:07:25 +02:00
Romain Beaumont
2d4f4a05e1
trying to fix autoversion in online mode 2017-07-09 13:21:54 +02:00
Romain Beaumont
aa96950ac5
Merge remote-tracking branch 'origin/master' 2017-06-19 15:50:29 +02:00
Romain Beaumont
08353123c0
Release 1.3.1 2017-06-19 15:50:11 +02:00
Romain Beaumont
3e118345d6 Merge pull request #493 from PrismarineJS/greenkeeper/require-self-0.2.1
Update require-self to the latest version 🚀
2017-06-19 15:44:10 +02:00
Romain Beaumont
1a4d9f1e84
fix version checking bug with 1.12 and share vanilla server instance between tests 2017-06-19 15:28:24 +02:00
Romain Beaumont
b445e7fb94
fix kicking message in test for 1.12 2017-06-19 14:57:28 +02:00
Romain Beaumont
d9d1b7a56e
fix 1.12 tests : implement anon fields, set varint test value to 1 for some switch, implement bitfield, don't assume non-anon containers for packets 2017-06-19 14:34:13 +02:00
Romain Beaumont
4e468b09dc Merge pull request #496 from plexigras/auto-version-fix
improved automatic version resolution
2017-06-19 14:01:12 +02:00
plexigras
2a6973ab42 simplified autoversion fallback 2017-06-17 20:17:52 +02:00
plexigras
6a3acff5de improved version getter 2017-06-14 14:54:25 +02:00
Romain Beaumont
a876274307
Release 1.3.0 2017-06-12 15:36:46 +02:00
Romain Beaumont
ed5f3981e8
1.12 support 2017-06-12 15:35:37 +02:00
Romain Beaumont
59bb1ac95c
Release 1.2.0 2017-06-08 14:49:59 +02:00
greenkeeper[bot]
50a62eb3c0 chore(package): update require-self to version 0.2.1 2017-06-07 02:25:38 +00:00
Romain Beaumont
20dd0710f2 parallel circle ci testing of clientTest.js (#373) (#449)
parallel testing with circle ci, solve #373
2017-05-10 02:49:13 +02:00
Romain Beaumont
b4c80d325e Merge pull request #489 from PrismarineJS/17w18b
* 17w18b support
2017-05-05 14:19:50 +02:00
Romain Beaumont
e2dbb671fe
the logger still has bugs, removing automatic tests for 17w18b (but nmp does support it) 2017-05-05 14:19:40 +02:00
Romain Beaumont
a49d2add38
17w18b support 2017-05-05 14:07:53 +02:00
Romain Beaumont
87768f5d76
use protodef addProtocol 2017-04-22 14:10:47 +02:00
Romain Beaumont
2610273529
can't run the 17w15a tests because the snapshot vanilla server logging is broken 2017-04-13 15:07:15 +02:00
Romain Beaumont
062cf370ab
increase the java 2017-04-13 14:52:32 +02:00
Romain Beaumont
730aab3c92
17w15a support 2017-04-13 14:07:33 +02:00
greenkeeper[bot]
160aec16cb Add Greenkeeper badge 🌴 (#478)
* docs(readme): add Greenkeeper badge 

https://greenkeeper.io/

* Update README.md
2017-03-14 16:59:48 +01:00
Romain Beaumont
1e74dc2c1b
fix version checking for lower versions 2017-03-12 13:51:07 +01:00
Romain Beaumont
a55d2bc42c
produce a decent error when connecting with the wrong version 2017-03-12 12:23:13 +01:00
Robin Lambertz
5126b96954 Merge pull request #463 from roblabla/feature-addErrorHandler
Add errorHandler option
2017-02-27 13:35:10 +01:00
Robin Lambertz
beeea8978d Merge branch 'master' into feature-addErrorHandler 2017-02-27 13:20:10 +01:00
Romain Beaumont
1683d21214
Release 1.1.3 2017-02-26 20:07:51 +01:00
Romain Beaumont
c72d0373e8
requires node 6 in package.json 2017-02-26 19:59:56 +01:00
deathcap
3ff7ac64c1
Remove babel/gulp in favor of native ES6 2017-02-26 19:58:45 +01:00
Romain Beaumont
ce1ee7d7e3
Release 1.1.2 2017-02-26 19:48:37 +01:00
Romain Beaumont
3d3916bb93
some fixes for last protodef 2017-02-26 19:46:17 +01:00
roblabla
4b99245a80 Add errorHandler option 2017-01-28 23:50:33 +01:00
Romain Beaumont
a4db7a10a7
1.11.2 support, fix #458 2016-12-29 12:42:34 +01:00
Romain Beaumont
4a68150be2
Release 1.1.1 2016-12-02 14:04:03 +01:00