websocketClose (Function)

Signature: websocketClose(wsID: int) -> int

Description: Closes the WebSocket connection and returns the runtime status.

Parameters

  • wsID (int): WebSocket identifier to close

Returns: int

Example

let status = websocketClose(wsId)
print(status)
status = websocketClose wsId
print status