jsp-raknet
Version:
Basic RakNet implementation written in Javascript
21 lines (20 loc) • 609 B
JavaScript
// Identifiers used to identify incoming packets
module.exports = {
ConnectedPing: 0x00,
UnconnectedPing: 0x01,
UnconnectedPong: 0x1c,
ConnectedPong: 0x03,
OpenConnectionRequest1: 0x05,
OpenConnectionReply1: 0x06,
OpenConnectionRequest2: 0x07,
OpenConnectionReply2: 0x08,
ConnectionRequest: 0x09,
ConnectionRequestAccepted: 0x10,
ConnectionAttemptFailed: 0x11,
NewIncomingConnection: 0x13,
NoFreeIncomingConnections: 0x14,
DisconnectNotification: 0x15,
IncompatibleProtocolVersion: 0x19,
AcknowledgePacket: 0xc0,
NacknowledgePacket: 0xa0
};