Commands/wsserver

Minecraft Wiki article. Categories: Bedrock_Edition, Minecraft_Education, Commands

📌 Mirrored from Minecraft Wiki

This article is reproduced from Commands/wsserver on the Minecraft Wiki. Mirrored from revision 3385116. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/wsserver

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.0build 1Added /wsserver.
Pocket Edition
1.0.0alpha 0.17.0.1Added /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.

Sources