Commit graph

24 commits

Author SHA1 Message Date
Andrew Kelley
5e0ae2713a Client also emits 'packet' events for every packet 2013-01-04 21:57:17 -05:00
Andrew Kelley
150c89cc6d passing test: pinging a real minecraft server 2013-01-04 21:42:31 -05:00
Andrew Kelley
38194ee9b4 add test, ping, and 2 API changes
* passing test: responds to ping requests
 * `mc.ping` - ping a server for info
 * `createServer`: `options.timeout` -> `options.checkTimeoutInterval`
 * `Client` emits `connect` event
2013-01-04 21:33:19 -05:00
Andrew Kelley
1661ef3b4b API updates
* test passing: kicks clients that do not log in
 * index exports `Client` and `Server`
 * `createServer`: `options.keepAliveInterval` -> `options.kickTimeout`
 * `Client` event `end` includes `reason` argument
   - `LoginTimeout`
   - `KeepAliveTimeout`
   - `ServerShutdown`
 * `createClient`: Set `options.keepAlive` to `false` to disable sending
   keep alive packets
 * `Client`: `options.isServer` defaults to `false`.
2013-01-04 20:55:53 -05:00
Andrew Kelley
c9ed8a2792 server API update
* add passing test for "starts listening"
 * server.socket -> server.socketServer
 * add client.id which can be used as entity id
 * add server.clients which is {clientId: client}
 * update server examples
 * server emits 'close' event, not 'end' event
 * add server.close()
2013-01-04 20:22:19 -05:00
Andrew Kelley
8096a08afd avoid dependency on iconv. makes it easier to use on windows. see #12 2013-01-04 19:04:06 -05:00
Andrew Kelley
3a8bfaf8e3 refactor + createServer support 2013-01-04 01:45:57 -05:00
Andrew Kelley
d38dad2d56 move packets to protocol, refactor 2013-01-03 23:14:19 -05:00
Andrew Kelley
c405ac21f8 refactor into nice npm module. closes #7 2013-01-01 23:39:31 -05:00
Andrew Kelley
1979ef3848 all clent to server packets have supported data type writers 2013-01-01 20:58:47 -05:00
Andrew Kelley
0d3d9d63a3 all packets parsed. closes #8 2013-01-01 20:29:03 -05:00
Andrew Kelley
7aeea8a320 more packets and parsers 2013-01-01 19:05:20 -05:00
Andrew Kelley
f1da7b152b more packets supported 2013-01-01 16:42:13 -05:00
Andrew Kelley
7b92a88872 more packets parsed 2013-01-01 15:27:24 -05:00
Andrew Kelley
e42f89a6ac fix slot parsing 2013-01-01 14:54:25 -05:00
Andrew Kelley
4523996067 more packets parsed 2013-01-01 07:01:14 -05:00
Andrew Kelley
3804c5cea6 refactor and fix map chunk bulk parsing 2013-01-01 06:12:48 -05:00
Andrew Kelley
c51cb26769 parser recognizes map chunk bulk 2013-01-01 05:48:18 -05:00
Andrew Kelley
d501a5a7eb recognize Set Window Items packet 2013-01-01 05:10:24 -05:00
Andrew Kelley
33bf57b6c2 more recognized packets and data types 2013-01-01 05:02:24 -05:00
Andrew Kelley
fd43515c42 successfully log in to minecraft server
next step is to add more supported packets
2013-01-01 04:14:38 -05:00
Andrew Kelley
3bc30a97b5 AES encryption/decryption working.
now getting kicked for not verifying username
2013-01-01 01:49:38 -05:00
Andrew Kelley
321a97acb4 successfully getting the encryption key response 2012-12-31 23:53:36 -05:00
Andrew Kelley
043cbd5882 getting encryption request 2012-12-31 20:33:35 -05:00