127 Commits
Author SHA1 Message Date
Janis Pritzkau 877e559641 Update dependencies and change version to 0.9.0 2021-01-23 17:00:47 +01:00
Janis Pritzkau 28bb53943a Update examples to work with 1.16.5 2021-01-21 11:34:51 +01:00
Janis Pritzkau 64454d0775 Remove built-in keep-alive from connection 2021-01-21 09:57:09 +01:00
Janis Pritzkau 36c1b58b6f Update package version to 0.8.5 2021-01-18 11:43:22 +01:00
mdashlw 6e07a1bd52 Update keep alive packet ids 2021-01-18 11:39:05 +01:00
Janis Pritzkau be2928fb85 Fix typescript bugs after upgrade 2020-12-02 15:04:12 +01:00
Janis Pritzkau 68c8afc0f5 Update dependencies and package version 2020-12-02 14:43:10 +01:00
Janis Pritzkau 831647ec94 Change 1.16 protocol version to the earliest 1.16 release 2020-12-02 14:41:11 +01:00
Janis Pritzkau 5642c105c8 Merge pull request #3 from waweber/fix-1.16
Fix keep alive packet IDs for v1.16
2020-12-02 13:32:07 +01:00
Wes Weber c6ab50bed7 The client bound packet also changed back 2020-11-27 17:41:06 -05:00
Wes Weber 8f832cfa98 Update protocol support for 1.16 keep-alives 2020-11-27 17:12:27 -05:00
Janis Pritzkau bc5368455d Fix unhandled connection error when connecting 2020-09-16 19:29:53 +02:00
Janis Pritzkau c7fe941a6c Re-export nbt-ts module 2020-04-24 17:43:44 +02:00
Janis Pritzkau 5cee70fba4 Add nbt methods to packet reader and writer 2020-04-24 17:36:46 +02:00
Janis Pritzkau 88f66580cc More robust error handling
Catch errors in packet handlers and default to forcibly close the connection instead of crashing.
2020-04-17 15:38:10 +02:00
Janis Pritzkau e76922c5c9 Update dependencies and protocol version from pre-release to 1.15 2020-03-11 09:27:53 +01:00
Janis Pritzkau 6b2b6fcc4a Add multi-version support for the chat client example 2019-12-04 15:31:51 +01:00
Janis Pritzkau 0fbae97fa9 Log packet id as hex format in proxy example 2019-12-04 14:04:09 +01:00
Janis Pritzkau 51104020b1 Update packet ids for 1.15 pre-release 2019-12-04 13:54:39 +01:00
Janis Pritzkau 4fee3d016c Add close method to server 2019-11-02 10:43:33 +01:00
Janis Pritzkau 71f98127ab Add timeout option 2019-10-08 17:56:20 +02:00
Janis Pritzkau d764a3bd6c Only do srv lookup if host is a domain 2019-10-03 12:43:53 +02:00
Janis Pritzkau f2799617c3 Update version 2019-09-19 08:52:10 +02:00
Janis Pritzkau a4af9ff55a Allow position object as argument in writePosition 2019-09-19 08:51:13 +02:00
Janis Pritzkau 046e47d478 Fix negative values in read position 2019-09-06 18:06:29 +02:00
Janis Pritzkau ca34c5ed9a Add downloads badge 2019-08-18 09:21:52 +02:00
Janis Pritzkau c996f59e75 Add tsconfig.json to .npmignore 2019-08-12 15:40:17 +02:00
Janis Pritzkau c9d27ccb5a Update examples to work on windows and mac 2019-08-12 15:37:50 +02:00
Janis Pritzkau de9675f84a Update related project urls 2019-08-11 12:01:49 +02:00
Janis Pritzkau 5661fad10c Update README.md 2019-08-11 11:18:44 +02:00
Janis Pritzkau c4de625c30 Update .npmignore and add license badge 2019-08-11 11:01:32 +02:00
Janis Pritzkau 8212d75856 Emit end on socket close event 2019-08-11 10:50:13 +02:00
Janis Pritzkau 166d219a2b Add LICENSE 2019-08-10 16:57:40 +02:00
Janis Pritzkau 6bb4891ea9 Add npm badge and keywords 2019-08-07 12:15:06 +02:00
Janis Pritzkau cd37801a56 Change repository url 2019-08-06 10:44:54 +02:00
Janis Pritzkau 20a2c6065a Publish 0.7.0 and small fixes 2019-08-05 16:42:16 +02:00
Janis Pritzkau ccc118c09f Update examples and packet ids for 1.14 2019-08-05 16:40:52 +02:00
Janis Pritzkau c85d064727 Fix malformed url in hasJoinedSession function 2019-08-05 16:08:36 +02:00
Janis Pritzkau 6b0b609d7e Change event system, update README and fix other things 2019-08-05 14:17:43 +02:00
Janis Pritzkau c96b79feed Switch host and port arguments in connect method 2019-08-04 19:25:06 +02:00
Janis Pritzkau cf9187bda2 Add server keep alive back 2019-08-04 15:51:27 +02:00
Janis Pritzkau 1345477816 Fix client handler type 2019-08-03 18:56:29 +02:00
Janis Pritzkau 0ee8a7fdd1 Change version to 0.6.1 and update dependencies 2019-07-30 19:21:41 +02:00
Janis Pritzkau 071e020d59 Handle early disconnect in next packet 2019-07-30 19:09:27 +02:00
Janis Pritzkau ad9aa6e5d1 Edit examples to work with the new version 2019-07-30 18:51:13 +02:00
Janis Pritzkau d5257d57bf Throw if next packet isn't the specified id
And add server ref as second argument to the client handler.
2019-07-30 18:50:42 +02:00
Janis Pritzkau 56e043ade3 Fix version number 2019-07-30 15:11:48 +02:00
Janis Pritzkau 162b3297d5 Merge default options in Server constructor 2019-07-24 16:08:36 +02:00
Janis Pritzkau 535d56a4db Update dependencies 2019-06-01 08:31:27 +02:00
Janis Pritzkau 2b7225ce6d Move related code to server and client classes
A custom event class was added to make extending the connection class easier.
2019-06-01 08:19:50 +02:00