Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition. 
wsserver
Aliases
Permission level
required

2‌[BE only]
0‌[EE only]

Restrictions

Cheat only
No command block‌[BE only]

Stands for "WebSocket server". Used to connect to a WebSocket server which uses command messages to communicate with clients. Used primarily in Education Edition.

The alias /connect can also be used.

Syntax[]

wsserver <serverUri: text>
connect <serverUri: text>

Connect or disconnect to specified WebSocket server.

Arguments[]

serverUri: text: CommandRawText

A URI indicating a WebSocket server. Or any string to disconnect from current WebSocket server.
It is a greedy phrase string (taking the rest of the command as the string argument).

Result[]

Fails if the argument is not specified correctly.

Uses[]

Primarily used with Education Edition's Code Connection and Classroom Mode. MCWSS is an outdated API worked on by the community that was meant to let people easily write WebSocket programs for Minecraft. MCWSS

History[]

Pocket Edition Alpha
v0.16.0build 1Added /wsserver.
Pocket Edition
1.0.0alpha 0.17.0.1Added /connect.
Advertisement