Commit graph

125 commits

Author SHA1 Message Date
roblabla
bbace6b62d Fix proxy.js template string v2 2015-03-06 23:14:36 +00:00
roblabla
50f216cdaf Remove template string from proxy.js 2015-03-06 22:58:58 +00:00
roblabla
e94876d30a Properly close chat example when connection fails or errors 2015-03-06 16:43:05 +00:00
roblabla
c1ced61d47 Make proxy able to spot discrepencies in input/output buffer. 2015-03-03 12:43:46 +00:00
roblabla
25f2658895 Don't output huge packets 2015-02-24 23:44:59 +00:00
roblabla
31f6d8380e Publish debugging tool, fix bugs in protojs 2015-02-22 22:13:22 +00:00
roblabla
d657371b6b Fix compression. Implement position. Add some debugging utilities. 2015-01-01 22:20:47 +00:00
roblabla
2f90252eaa Merge upstream, fix mistakes in examples 2014-03-16 18:14:55 +01:00
roblabla
244ad8ed39 Use ProtocolLib naming scheme. Use hasOwnProperty instead of equality 2014-03-16 18:06:57 +01:00
deathcap
0cd3ed13d9 Add packet names 2014-01-13 21:56:56 -08:00
roblabla
018fb6407f Add new chat client example 2014-01-06 00:57:29 +01:00
roblabla
875d10ed0b Protocol 1.7 support, Yggdrasil login support, new Client State API 2014-01-06 00:57:18 +01:00
darthfett
9b274df54a Cleanup: terminate all statements with semicolons, remove unnecessary semicolons, remove unused variables, add hasOwnProperty checks in 'for x in y' loops. 2013-11-19 16:55:30 -07:00
Xabier de Zuazo
8e02b4f0b0 examples updated to work with 1.6.1 2013-07-09 08:11:09 +02:00
Andrew Kelley
adc47b0f62 fix incorrect playerCount in ping. closes #41 2013-02-10 17:51:47 -05:00
Andrew Kelley
df3f95e1ff don't require both email and username. closes #32
This change breaks backwards compatibility.

`createClient` no longer takes an `email` argument. Instead, the
`username` argument is used to authenticate and determine the
case correct username.

There is a special case if you leave out the `password` argument.
In this case, `username` is used to connect directly to the server,
and you may get kicked if the server is in online mode.
2013-01-30 19:56:43 -05:00
Robin Lambertz
ebc6af6a7e Added server encryption and online mode 2013-01-27 01:12:09 +00:00
Andrew Kelley
2e75851fd6 test passing: clients can log in and chat 2013-01-04 22:47:54 -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
3a8bfaf8e3 refactor + createServer support 2013-01-04 01:45:57 -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
fadb9e0c0a un-namespace packet events. remove generic packet event. 2013-01-03 20:59:58 -05:00
Andrew Kelley
fa1a8db52a update example code with new packet specific events 2013-01-02 21:59:40 -05:00
Andrew Kelley
4b0780db66 all tests passing. closes #3 2013-01-02 03:30:33 -05:00