nethernet
v0.1.0
Published
(WIP) Minecraft Bedrock nethernet protocol
Readme
node-nethernet
A Node.JS implementation of the NetherNet protocol.
Install
npm install nethernetExample
const { Client, Server } = require('node-nethernet')
const server = new Server()
// Client sends request to the broadcast address and server responds with a message
server.setAdvertisement(Buffer.from([0]))
const client = new Client(server.networkId)
client.on('encapsulated', (buffer) => {
console.assert(buffer.toString() === '\xA0 Hello world')
})
server.on('openConnection', (client) => {
client.send(Buffer.from('\xA0 Hello world'))
})
server.listen()
client.connect()
