Wiki ArticleBedrock EditionMinecraft EducationCommands
/wsserver
Connect or disconnect to specified WebSocket server. The alias /connect can also be used.
WebSocket server uses command messages to communicate with clients. Used primarily in Minecraft Education. Primarily used with Education Edition's Code Connection and Classroom Mode.
Fails if the argument is not specified correctly.
This feature is exclusive to Bedrock Edition and Minecraft Education.
/wsserver| Aliases | /connect
|
|---|---|
| Permission level required |
|
| Restrictions | Cheat only No command block[BE only] |
Connect or disconnect to specified WebSocket server. The alias /connect can also be used.
Usage
WebSocket server uses command messages to communicate with clients. Used primarily in Minecraft Education. Primarily used with Education Edition's Code Connection and Classroom Mode.
Syntax
wsserver <serverUri: text>connect <serverUri: text>
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 argument (taking the rest of the command as the string argument).
Result
Fails if the argument is not specified correctly.
History
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /wsserver. | |||||
| Pocket Edition | |||||||
| 1.0.0 | alpha 0.17.0.1 | Added /connect. | |||||
See also
- MCWSS: MCWSS is an outdated API worked on by the community that was meant to let people easily write WebSocket programs for Minecraft.
External links
- "
/wsserverCommand" – Microsoft Learn, October 11, 2023.