Retrieve the status of a Bedrock Edition Minecraft server.
Overview
There is only one method for retrieving the status of a Bedrock Edition Minecraft server, unlike the many methods used by Java Edition. The documentation below will show you how to use the method, and its return value.
Methods
statusBedrock()
This will retrieve the status of any version Bedrock Edition or Pocket Edition Minecraft server.
constutil=require('minecraft-server-util');constoptions= { enableSRV:true// SRV record lookup};// The port and options arguments are optional, the// port will default to 19132.util.statusBedrock('localhost',19132, options).then((result) =>console.log(result)).catch((error) =>console.error(error));