Matt Stith
d0664f37b4
Connect to a server's SRV record if they specify one
2013-04-13 17:23:31 -03:00
Xabier de Zuazo
936ba5832d
added debug output for read/written packet ids
2013-04-06 05:04:47 +02:00
Xabier de Zuazo
b699d5506a
added debug() method for NODE_DEBUG=mc-proto
2013-04-06 05:02:36 +02:00
Andrew Kelley
93068b935d
don't ever remove the 'error' handler from the socket.
...
fixes crashing with an unhandled error
2013-02-03 22:13:15 -05:00
Andrew Kelley
1a434b9743
client emits more predictable 'end' event
2013-02-03 15:36:55 -05:00
Andrew Kelley
bb76dc8b0a
Revert "Removed socket delays to reduce latency"
...
This reverts commit 6442e8d6b0
.
Reverting until we can figure out why this is causing test failures.
2013-02-03 15:36:17 -05:00
Matt Bell
6442e8d6b0
Removed socket delays to reduce latency
2013-02-01 17:33:03 -08:00
Robin Lambertz
fdc01db825
Pass the original error around, and emit an error event on the client
2013-01-29 17:39:33 +00:00
Robin Lambertz
d6b3a91751
client.end should have a string argument, not an Error object.
2013-01-29 11:05:10 +00:00
Robin Lambertz
997071ef41
Changed if(typeof var === undefined) to if(var). Made errors error objects.
2013-01-29 08:53:23 +00:00
Robin Lambertz
eaa895120a
Original skeleton changes.
2013-01-29 00:44:00 +00:00
Andrew Kelley
10cb3e0100
test all packets
2013-01-07 23:36:14 -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
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
3a8bfaf8e3
refactor + createServer support
2013-01-04 01:45:57 -05:00