Configure WebSocket Port
# Configure WebSocket Port
Path:
/api/server_config
Method: PUT
API Description: This can be used to configure the port for WebSocket connection, which corresponds to the WebSocket port of the server.
Only supported by player of version 1.71.6 or above.
Request
| Name | Type | Example | Description |
|---|---|---|---|
| webSocketPort | int | 8965 | The port for WebSocket connection, which corresponds to the WebSocket port of the server. Port range: (0, 65535] |
Example
{"webSocketPort":7322}