* Add createServer, ping on createClient, update README * fix createClient keepalive * resort readme, fix node 14 * Enforce auth on server connections, fix close/connect issues * add type definitions, update readme, docs * Wait some time before closing connection, update docs * wait for server close in tests, fix race bug * export a ping api * Rename api.md to API.md * add ping example
5 lines
132 B
JavaScript
5 lines
132 B
JavaScript
const { ping } = require('bedrock-protocol')
|
|
|
|
ping({ host: 'play.cubecraft.net', port: 19132 }).then(res => {
|
|
console.log(res)
|
|
})
|