falkirks / mcpe-ping

Pings an MCPE server for simple data.
MIT License
18 stars 3 forks source link
javascript mcpe node ping raknet

NPM version Build Status Dependency Status

Pings an MCPE server for simple data.

This is a port of mc-ping for MCPE.

This library was written using code from the DirtServer project.

Install

$ npm install --save mcpe-ping

Usage

var mcpeping = require('mcpe-ping');

mcpeping('example.com', 19132, function(err, res) {
    if (err) {
        // Some kind of error
        console.error(err);
    } else {
        // Success!
        console.log(res);
    }
}, 3000);

License

MIT © Falkirks