/wsserver Command in Minecraft Bedrock Edition

Connect to a Websocket Server with wsserver

Bedrock EditionServer AdminPermission: AdminCheats: Yes

The /wsserver command in Minecraft Bedrock Edition attempts to connect your game to a websocket server using a URL you provide. You can also use this command to disconnect from an active websocket server.

Players and server administrators use this command when setting up external tools or services that communicate with Minecraft through a websocket connection. Because it requires admin permissions, cheats must be enabled in your world to run it.

Syntax (1 form)

  1. /wsserver <serverUri: text>

    WSServer

Arguments

ArgumentTypeWhat it means
serverUritextA `URI` of the server to connect to. Or use an empty `string` to disconnect.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a /wsserver command, as this feature is exclusive to Bedrock Edition.

FAQ

What does the /wsserver command do in Minecraft?

It attempts to connect your Minecraft Bedrock Edition game to a websocket server at the URL or URI you provide.

How do I disconnect from a websocket server?

You can disconnect from the active server by running the /wsserver command with an empty string as the serverUri argument.

Why can I not use the /wsserver command?

The command requires an Admin permission level and cheats must be enabled in the world, otherwise the game will not let you run it.

Related commands

/allowlist/changesetting/deop/kick/list/op/permission/save/setmaxplayers/stop/transfer