raknet

1.8.0 • Public • Published

raknet

NPM version Join the chat at https://gitter.im/PrismarineJS/node-minecraft-protocol

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.

Thanks

Readme

Keywords

Package Sidebar

Install

npm i raknet

Weekly Downloads

3

Version

1.8.0

License

MIT

Last publish

Collaborators

  • mhsjlw
  • rom1504