Get WebSocket Port

555

# Get WebSocket Port

Path:

/api/server_config.json

Method: GET

API Description: This can be used to get the port for WebSocket connection. The default port number is 8443, corresponding to the WebSocket port of the server.

Only supported by player of version 1.71.6 or above.

Response

Name Type Example Description
webSocketPort int 8965 The port for WebSocket connection, which corresponds to the WebSocket port of the server.

Example

{"webSocketPort":7322}