re-emit mcpe packets as client event

This commit is contained in:
Romain Beaumont 2016-04-05 00:03:01 +02:00
commit d17c62307a
3 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,7 @@ function createClient(options) {
var client=raknet.createClient(options);
client.username = options.username;
client.on("mcpe",packet => client.emit(packet.name,packet.params))
return client;
}