Commit graph

22 commits

Author SHA1 Message Date
Romain Beaumont
917b6adda1 enable cross version with an option in createClient and createServer :
* put parsePacketData in deserializer and createPacketBuffer in serializer
* remove packets from the index and expose readPacket instead
* load packets when needed in various files
* make tests test every supported version
static cross version of #234, fix #65, fix #240
2015-09-29 22:44:28 +02:00
roblabla
79ded321bf Add extend type support 2015-09-03 13:05:11 +00:00
roblabla
3282cf69c7 Introduce switch and void, remove condition 2015-08-25 11:55:25 +00:00
Romain Beaumont
3892fb6de3 bump minecraft data : now multi version support 2015-08-21 16:19:46 +02:00
Romain Beaumont
6b6303b853 use protocol.json from minecraft-data
fix #163
2015-08-01 20:13:32 +02:00
Romain Beaumont
1226f0f520 split index.js into mainly createClient.js and createServer.js
also create a few other files containing common information and functions :
* mcHexDigest.js which contain the function of the same name used in both createClient.js and createServer.js
* ursa.js which handle the abstraction on top of ursa and ursa-purejs : used in both createClient.js and createServer.js
* version.js used in index.js, createClient.js and createServer.js
2015-07-27 02:26:36 +02:00
Romain Beaumont
1a9e08cbd8 move createPacketBuffer and parsePacketData functions to serializer, also move protocol's exports to serializer 2015-05-23 03:31:47 +02:00
Romain Beaumont
3c61f24991 remove write callback
knowing when the packet has been sent is not an useful information : the fact that it's sent doesn't mean it is received and what we usually want is that the packets are in the proper order no when they are sent
2015-05-23 01:10:58 +02:00
roblabla
17dea74357 Rewrite of the internal serializer using transform streams 2015-05-21 20:35:03 +00:00
roblabla
fb6641b374 Fix node-mc-proto disconnecting players from the notchian client 2015-05-19 13:08:09 +00:00
Romain Beaumont
6446b205f0 add callback to write (socket.write *is* async) fix #168 2015-05-18 19:01:23 +02:00
roblabla
3cab629259 Oops, remove source-map-support 2015-05-16 01:11:50 +00:00
radare-travis
aad5ba0fd9 Properly handle multiple set_compression requests during PLAY state 2015-05-16 01:07:10 +00:00
Romain Beaumont
1dec8ccffd fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol) 2015-05-14 22:08:49 +02:00
Romain Beaumont
778752f097 move packets reading to packets.js, remove some dead code 2015-05-13 15:15:16 +02:00
roblabla
5806bd5a7d Avoid crashing when decrypting fails 2015-04-14 12:38:16 +00:00
deathcap
bbbd022f33 Move network-specific code out of client.js 2015-03-28 23:24:23 -07:00
Brian Schlenker
a773bb13e7 added hook for before client receives ping
createServer takes additional option 'beforePing' which is a function
receiving the response to send back to the client and the client object,
and returning a modified response to send back.
The client now has the serverHost, serverPort, and protocolVersion
pulled from the handshake packet. This can be used to proxy
the client to different backend servers depending on the domain name.
2015-03-26 01:50:57 -07:00
roblabla
254223d9c7 Wrong context when grabbing username 2015-03-23 16:20:50 +00:00
Will Franzen
06cd5f5441 Fix require statements 2015-03-06 23:00:32 -06:00
Will Franzen
4e32c12bfd Merge branch 'master' of https://github.com/PrismarineJS/node-minecraft-protocol into es6
Conflicts:
	.gitignore
	index.js
	package.json
2015-03-06 22:50:28 -06:00
Will Franzen
423305a19d Set up gulpp 2015-02-22 10:27:46 -06:00
Renamed from index.js (Browse further)