raknet
v1.8.0
Published
UDP network library that follows the RakNet protocol for Node.js
Downloads
55
Readme
raknet
Note: This project is not affiliated with Jenkins Software LLC nor RakNet.
UDP network library that follows the RakNet protocol for Node.js
API
createClient(options)
Create a client. options :
- host
- port
- password (optional)
- customPackets (optional)
- customTypes : native protodef types (optional)
- clientID : a long representing the client id, default to
[339844,-1917040252]
- mtuSize : default to 1492
createServer(options)
Create a server. options :
- host
- port
- name (optional)
- customPackets (optional)
- customTypes : native protodef types (optional)
- serverID : a long representing the server id, default to
[ 339724, -6627871 ]
createSerializer()
Return a raknet packet serializer, see node-protodef doc.
createDeserializer()
Return a raknet packet serializer, see node-protodef doc.