minecraft.wiki-mirror/wiki_backup/Commands_connect.txt

51 lines
1.5 KiB
Text

{{exclusive|bedrock|education}}
{{Infobox command
|name=wsserver
|alias={{cmd|connect}}
|oplevel=
* 2 {{only|bedrock|short=1}}
* 0 {{only|education|short=1}}
|cheat=y
|others=No command block{{only|bedrock|short=1}}
}}
Connect or disconnect to specified WebSocket server. The alias {{cmd|connect}} can also be used.
== Usage ==
WebSocket server uses [[command]] messages to communicate with clients. Used primarily {{in|ee}}. Primarily used with Education Edition's [[Code Connection]] and [[Classroom Mode]].
== Syntax ==
: <code>wsserver <serverUri: text></code>
: <code>connect <serverUri: text></code>
== Arguments ==
{{argument|be=1|serverUri: text|CommandRawText}}
: A URI indicating a WebSocket server. Or any string to disconnect from current WebSocket server.
: {{arg desc|be=CommandRawText}}
== Result ==
Fails if the argument is not specified correctly.
== History ==
{{HistoryTable
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|wsserver|link=none}}.}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Added {{cmd|connect|link=none}}.}}
}}
== See also ==
* [https://www.reddit.com/r/MCPE/comments/5qf4ah/websockets_huge_potential_currently_unusable/ MCWSS]: MCWSS is an outdated API worked on by the community that was meant to let people easily write WebSocket programs for Minecraft.
== Navigation ==
{{Navbox commands}}
[[ja:コマンド/wsserver]]
[[pt:Comandos/wsserver]]
[[ru:Команды консоли/wsserver]]
[[zh:命令/wsserver]]