/wsserver
< Commands
This feature is exclusive to Bedrock Edition and Minecraft Education.
/wsserver| Aliases | /connect
|
|---|---|
| Permission level required |
|
| Restrictions | Cheat only No command block[BE only] |
{
"title": "<code>/wsserver</code>",
"rows": [
{
"field": "<!-- Command --><code ><span>/(link to Commands/connect article, displayed as connect)</span></code><!-- /Command -->",
"label": "Aliases"
},
{
"field": "\n* 2 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>\n* 0 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Minecraft Education\">(link to Minecraft Education article, displayed as edu) only</span></i>]</sup>",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>No command block<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Connect or disconnect to specified WebSocket server. The alias /connect can also be used.
Usage
[edit | edit source]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
[edit | edit source]wsserver <serverUri: text>connect <serverUri: text>
Arguments
[edit | edit source]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
[edit | edit source]Fails if the argument is not specified correctly.
History
[edit | edit source]| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /wsserver. | |||||
| Pocket Edition | |||||||
| 1.0.0 | alpha 0.17.0.1 | Added /connect. | |||||
See also
[edit | edit source]- 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
[edit | edit source]- "
/wsserverCommand" – Microsoft Learn, October 11, 2023.