Commit graph

542 commits

Author SHA1 Message Date
Kurt Thiemann
9724ff41ed
Fix buffer length calculation in ServerAdvertisement (#292) 2022-10-04 02:57:00 -04:00
extremeheat
c51b55d4c7
Make CI less flaky (#293)
* add debug code to server start

* Reduce number of versions tested on Github Action CI to speed up tests

* test: Ask OS for free port instead of random int
2022-10-04 02:47:06 -04:00
extremeheat
3b51ebb6ee
Handle Relay serialization errors by kicking (#290)
* Handle Relay serialization errors by kicking

* lint
2022-09-26 22:52:34 -04:00
extremeheat
09a17c4ffb
CI: do not fail-fast 2022-09-26 20:48:48 -04:00
extremeheat
131733fb5a
Release 3.20.0 (#287) 3.20.0
* Release 3.20.0

* Update HISTORY.md
2022-09-24 17:49:52 -04:00
extremeheat
3295c0ddd9
Update doc (#288)
* Update API.md

* Update README.md

* Update API.md
2022-09-24 16:55:12 -04:00
extremeheat
7c716b9232
1.19.30 support (#286) 2022-09-24 16:47:03 -04:00
extremeheat
72dd749717
tools/vanillaServer: add HEAD request timeout
prevent long hangs
2022-09-24 15:46:33 -04:00
extremeheat
dbf15c4feb
use raknet-native for tests (#285) 2022-09-24 15:25:47 -04:00
extremeheat
f88c8d0bc4
1.19.30 support, improve error handling and server pong data (#284)
* Update server advertisement

* 1.19.30 protocol support
* Handle configurable compressor
* Support updated 1.19.30 login flow with NetworkSettings
* Improve serialization error handling on client

* refactor compressor handling

* Fix client on older versions, fix internal error handling

* Improve error handling

* Log console connection errors; use raknet-native for proxy test
2022-09-24 13:53:26 -04:00
extremeheat
30c583fcf3
Release 3.19.0 (#283) 3.19.0
* Update HISTORY.md

* Update package.json

* Remove viewer example

* Update HISTORY.md
2022-09-22 22:47:17 -04:00
extremeheat
99153c2de2
Add option for port redirection, fix Realm handling (#282)
* Port Redirect Fix - Only Redirect on Unspecified Port

* Update to use `followPort` option

Co-authored-by: Stephen O'Connor <oconnor39@gmail.com>
2022-09-22 15:14:49 -04:00
Stephen O'Connor
d3a085a260
Add Port Redirect Functionality (#278) 2022-09-14 22:31:31 -04:00
Stephen O'Connor
bf2de1dcf4
Add Get-AppxPackage command to FAQ.md (#276) 2022-09-11 23:19:32 -04:00
extremeheat
9d717744b6
Add 1.19.22 to types 2022-09-01 15:37:45 -04:00
extremeheat
ffe0fb42b5
Update index.d.ts 2022-08-25 14:05:14 -04:00
extremeheat
8913d48f42
Release 3.18.0 (#267) 3.18.0
* Update HISTORY.md

* Update package.json
2022-08-25 12:49:43 -04:00
extremeheat
7264cbe312
1.19.21 support (#266)
* Update options.js

* Update README.md
2022-08-25 12:06:57 -04:00
extremeheat
262a4eee00
Release 3.17.0 (#265) 3.17.0 2022-08-24 04:45:44 -04:00
extremeheat
f5c91ba1c9
Fix nbt encoding size on single null tag NBT (#264) 2022-08-24 00:50:01 -04:00
extremeheat
c395f0b05b
relay: Add multi-user login support (#258)
* relay: add multi-user login support

* relay: Fix close handling, connect username
2022-08-24 00:41:12 -04:00
Miniontoby
ce06762dce
test: Add -u flag unzipping vanilla server (#262)
* Fixed startVanillaServer.js

I fixed the CI by editing startVanillaServer.js and adding -u to unzip and tar

* Update startVanillaServer.js
2022-08-24 00:34:14 -04:00
CleSucre
3a0071f0ef
Add fields from 1.19.20 to login chain data (#259)
* Update Properties

* Ci Fix
2022-08-16 23:25:24 -04:00
extremeheat
e10c6133ec
Release 3.16.0 (#252) 3.16.0
* Update package.json

* Update HISTORY.md
2022-08-11 21:49:53 -04:00
extremeheat
0c77d8e252
1.19.20 support (#251)
* Update options.js

* Update README.md
2022-08-11 21:16:32 -04:00
extremeheat
d1ba619788
Fix proxy test waiting condition (#250)
* Fix proxy test waiting condition

* update test command

* Update proxy.js

* Update proxy.js

* Update proxy.js
2022-08-10 13:29:46 -04:00
b23r0
b36c55e112
Add new raknet library option (raknet-node) (#211)
* add new raknet library option (raknet-node)

* fix lint

* fix lint & add new options

* fix lint

* fix user option & add rust-raknet test.

* fix lint.

* add raknet backend option.

* remove useNativeRaknet option.

* add not found log.

* add test timeout size.

* fix js raknet return error.

* restore useNativeRaknet option.

* update doc.

* update options handling, back compat

* fix server doc

* Fix tests

* fix tests.

* fix lint.

* delay timeout.

* Update rak.js

* update raknet-node version.

* increase timeout.

* Update vanilla.js

* Update proxy.js

* Update internal.js

* update raknet-node version.

* update rust-raknet version.

* increase timeout test time

* increase timeout test time

* update backend version.

* change timeout

Co-authored-by: extremeheat <extreme@protonmail.ch>
2022-08-09 03:39:27 -04:00
extremeheat
d221da7613
Update version list for 1.19.11
Update index.d.ts
2022-07-26 21:05:51 -04:00
extremeheat
370ca96f2e
Update startVanillaServer.js
Debug log on CI
2022-07-21 06:24:15 -04:00
extremeheat
1542ab63d1
Release 3.15.0 (#236) 3.15.0
* Update options.js

* Update package.json

* Update README.md

* Update index.d.ts

* Update HISTORY.md
2022-07-18 22:03:01 -04:00
extremeheat
87a958e4ab Prereq update for 1.19.10 changes to server join flow 2022-07-18 16:33:58 -04:00
Jonathan Nagy
7263714562
Fix chat echo sample (#233)
* Fix chat echo sample

The `client.options.username` reference is optional for online connections.  Referencing it here when it is null will not filter out the echo text, causing an infinite loop.

* Update client.js
2022-06-27 21:49:54 -04:00
LucienHH
149b4fe182
Update auth.js (#231) 2022-06-24 18:48:33 -04:00
extremeheat
bdaf21b8ed
CI: increase timeout to 12min 2022-06-24 04:31:22 -04:00
extremeheat
19bc2519e7
types: add 1.19.2 to versions
Add 1.19.2 to versions
2022-06-22 14:57:33 -04:00
ATXLtheAxolotl
6e73a75138
Add Realm support to Relay (#226)
* add(): realm relay

* fix(): Non-async solution to realm proxy

* fix(): follow the guidlines of the strict linter

* fix(): Use Client constructor instead of createClient function

* types(): Update index.d.ts to include realms option in destination
2022-06-17 05:55:50 -04:00
extremeheat
c7b825820e
Release 3.14.0 (#225) 3.14.0 2022-06-09 16:06:38 -04:00
extremeheat
9fac48e948
1.19 support (#224) 2022-06-09 15:44:20 -04:00
extremeheat
b6d0ab3765
Make CI more reliable (#217)
* Use 2-attempt server start method in dump test

* Update startVanillaServer.js

replace download from curl to nodejs https

* fix syntax error

* corrections

* rm some logging

* fix
2022-06-09 14:46:05 -04:00
Stephen O'Connor
aacd4b4256
Better handle ping timeout, update documentation (#218)
* Better handle ping_timeout, update documentation

* Remove extra semicolon

* Change ping_timeout to client.emit('error', e) for more normalized handling

* Remove extra RakTimeout import
2022-06-09 13:45:58 -04:00
extremeheat
df31b5d63a
test/vanilla: temporary hack to allow 1.19 chunk tests to pass 2022-06-09 13:08:51 -04:00
Erik
2d7c210acc
Server: correct body.protocol_version to body.params.protocol_version (#221)
packet.data is
```json
{
  name: 'login',
  params: {
    protocol_version: 503,
    tokens: {
      identity: '...'
    }
  }
}
```

Therefore `body.protocol_version` outputs undefined.
2022-06-07 03:47:21 -04:00
extremeheat
f7c556ec94
Release 3.13.0 (#208) 3.13.0 2022-05-04 16:11:53 -04:00
extremeheat
f4bd49dca0
Add 1.18.31 to types 2022-04-30 19:25:33 -04:00
extremeheat
63d11c24bb
Update API documentation 2022-04-30 19:22:35 -04:00
ATXLtheAxolotl
fbe7ff79e8
Emit generic 'packet' event for server clients (#205)
* Send out an all event on ServerPlayer

For debugging purposes

* Add a space for linter

* Changed to be similar to Client's all

* A space :|

* Update serverPlayer.js
2022-04-30 19:18:00 -04:00
extremeheat
52156a0024
Add XUID field for client offline mode client chain (#203)
* Add XUID field for client offline mode client chain

* Update serverPlayer.js

handle alternative casing

* test/internal.js: randomize test port

* fix

* test server starting retry
2022-04-30 19:02:56 -04:00
extremeheat
f2d39a071b
Update index.d.ts 2022-04-21 22:28:38 -04:00
extremeheat
20c53c49d7
Release 3.12.0 (#199) 3.12.0 2022-04-21 14:04:10 -04:00
extremeheat
dc3fb5629e
1.18.30 (#198) 2022-04-20 16:11:02 -04:00