* 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
* Fix port collision caused by race condition in tests
The ipv6 port is not randomized, if the previous ports for the last test didn't get freed in time, the server can crash on launch
* try again
* Update index.d.ts
* Update genPacketDumps.js
* Default to JS implementation of RakNet
* update server also, adjust test timeout based on number of versions
* 1.17.10: fix texture pack issue, keep raknet default at C++
* force_build
* fix: online/max player count type definition.
Fixes the type definition of the online/max players to be an immediate
child of the ServerAdvertisement class so that it can be accessed
properly on TypeScript.
Signed-off-by: JK <u.sslooky@gmail.com>
* feat: implement advertisementFn type definition.
Adds the type definition for the 'advertisementFn' server option.
Signed-off-by: JK <u.sslooky@gmail.com>
* fix: minor advertisementFn typo in API docs.
Fixes a minor typo found in the API docs that misspells
'advertisementFn' as 'advertismentFn'.
Signed-off-by: JK <u.sslooky@gmail.com>
* feat: add skipPing to the API docs.
Adds the 'skipPing' client option to the API docs.
Signed-off-by: JK <u.sslooky@gmail.com>
* feat: add connectTimeout type definition.
Adds the 'connectTimeout' client option to the package type definitions.
Signed-off-by: JK <u.sslooky@gmail.com>
* fix: ping types.
Sets the TypeScript definition file to include more accurate types for
the ping function.
Signed-off-by: JK <u.sslooky@gmail.com>
* fix: changed usage.
Reverts the usage to the previous method of entering in ping options.
This makes it so that the host and port can once again be entered by
their order alone.
Signed-off-by: JK <u.sslooky@gmail.com>
* preliminary support for xbox title + live.com auth
* cleanup
* export title list
* add to api docs
* Verify that minecraft token has titleId if did titleAuth
* Minor changes
* Add createServer, ping on createClient, update README
* fix createClient keepalive
* resort readme, fix node 14
* Enforce auth on server connections, fix close/connect issues
* add type definitions, update readme, docs
* Wait some time before closing connection, update docs
* wait for server close in tests, fix race bug
* export a ping api
* Rename api.md to API.md
* add ping example