Commit graph

172 commits

Author SHA1 Message Date
Andrew Kelley
91e103d4b8 Merge pull request #14 from jonathanperret/master
No need to get ursa outputs via base64, get buffers directly
2013-01-06 05:57:39 -08:00
Jonathan Perret
beb65d0e3d No need to get ursa outputs via base64, get buffers directly 2013-01-06 11:20:58 +01:00
Andrew Kelley
0d2848dfc5 Release 0.5.0 2013-01-06 00:43:02 -05:00
Andrew Kelley
a50bf7926b 0x38: remove chunkColumnCount. Use meta.length 2013-01-05 23:02:47 -05:00
Andrew Kelley
ab54392f46 Release 0.4.0 2013-01-05 16:54:21 -05:00
Andrew Kelley
08f71f11dc add chunkCount to 0x38
changed some more things for more API consistency

 * 0x33: compressedData -> compressedChunkData
 * 0x38: meta.chunkX -> meta.x
 * 0x38: meta.chunkZ -> meta.z
 * 0x38: meta.primaryBitMap -> meta.bitMap
 * 0x38: add chunkCount
2013-01-05 16:51:42 -05:00
Andrew Kelley
37d1cdcca1 fix chat test. passes on windows now too. 2013-01-05 15:52:46 -05:00
Andrew Kelley
afc11251a0 Release 0.3.0 2013-01-05 05:21:09 -05:00
Andrew Kelley
5f769caebc minor API update
* move constants.STRING_MAX_LENGTH -> protocol.STRING_MAX_LENGTH
 * expose protocol.version
 * expose protocol.minecraftVersion
 * expose protocol.sessionVerson
 * expose protocol.parsePacket
 * expose protocol.createPacketBuffer
2013-01-05 05:17:27 -05:00
Andrew Kelley
1fb0577fd9 installation instructions 2013-01-05 00:55:24 -05:00
Andrew Kelley
b9bea65e50 expose constants; update README 2013-01-04 23:22:48 -05:00
Andrew Kelley
3e7501b215 update README 2013-01-04 23:16:48 -05:00
Andrew Kelley
a6ee5ca026 Release 0.2.0 2013-01-04 22:55:48 -05:00
Andrew Kelley
cbb5be36b9 test passing: correct reason for kicking clients when shutting down 2013-01-04 22:53:54 -05:00
Andrew Kelley
2e75851fd6 test passing: clients can log in and chat 2013-01-04 22:47:54 -05:00
Andrew Kelley
5e0ae2713a Client also emits 'packet' events for every packet 2013-01-04 21:57:17 -05:00
Andrew Kelley
68b29db639 passing test: server kicks clients that do not send keepalive packets 2013-01-04 21:56:19 -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
bfb392ea19 Release 0.1.0 2013-01-04 01:46:39 -05:00
Andrew Kelley
d6bd6feb9a Merge branch 'server' 2013-01-04 01:46:15 -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
d331532d0d don't use buffer-more-ints. closes #11 2013-01-03 22:30:39 -05:00
Andrew Kelley
e783b8a1b3 documentation/examples for server 2013-01-03 22:01:17 -05:00
Andrew Kelley
62e66be053 writePacket -> write 2013-01-03 21:42:50 -05:00
Andrew Kelley
f70110a646 remove unused variable 2013-01-03 21:15:48 -05:00
Andrew Kelley
cc3480ee91 better names for byteArray / bigByteArray 2013-01-03 21:02:44 -05:00
Andrew Kelley
fadb9e0c0a un-namespace packet events. remove generic packet event. 2013-01-03 20:59:58 -05:00
Andrew Kelley
0247fc9cb8 packets.json -> packets.js 2013-01-03 20:53:24 -05:00
Andrew Kelley
45ebdc2781 test with 1.4.7pre 2013-01-03 19:47:17 -05:00
Andrew Kelley
fa1a8db52a update example code with new packet specific events 2013-01-02 21:59:40 -05:00
Andrew Kelley
796cb76435 Release 0.0.3 2013-01-02 21:58:09 -05:00
Andrew Kelley
79695daa23 fix player position and look. closes #10 2013-01-02 21:57:31 -05:00
Andrew Kelley
3f0ee115ee Release 0.0.2 2013-01-02 11:02:35 -05:00
Andrew Kelley
c1e5e0a994 update README 2013-01-02 06:35:10 -05:00
Andrew Kelley
646c7676c6 emit packets in their own channel as well 2013-01-02 05:25:53 -05:00
Andrew Kelley
4237787082 add an assert 2013-01-02 04:46:01 -05:00
Andrew Kelley
4b0780db66 all tests passing. closes #3 2013-01-02 03:30:33 -05:00
Andrew Kelley
46d862b1c4 test passing: get kicked for no credentials in online mode 2013-01-02 02:33:40 -05:00
Andrew Kelley
73e274e5c9 update README 2013-01-02 02:22:00 -05:00
Andrew Kelley
bde45a3d33 test passing: connects successfully - offline mode 2013-01-02 02:19:47 -05:00
Andrew Kelley
b99a319ef1 add a new section to README 2013-01-02 01:47:18 -05:00
Andrew Kelley
c2beb41fef test passing: connects successfully - online mode 2013-01-02 01:12:42 -05:00
Andrew Kelley
249de2dab5 Release 0.0.1 2013-01-01 23:40:25 -05:00
Andrew Kelley
c405ac21f8 refactor into nice npm module. closes #7 2013-01-01 23:39:31 -05:00
Andrew Kelley
dc2aa5222c update package.json 2013-01-01 21:51:46 -05:00