WebSocket_Connect
Connects to a remote server using WebSocket protocol.
Syntax
C++
C#
Python
def WebSocket_Connect( state: WebSocketConnectionState, inHostName: str, /, *, inTimeout: int | None = None, inReadBufferSize: int | None = None, inAllowUntrusted: bool = False, inCaCertFile: str | None = None ) -> outWebSocket: int | None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | WebSocketConnectionState | |||
![]() |
inHostName | str | URL address of the remote server. | ||
![]() |
inTimeout | int | None | 0 - ![]() |
None | Request timeout in seconds. |
![]() |
inReadBufferSize | int | None | None | Read buffer size. | |
![]() |
inAllowUntrusted | bool | False | Whether or not to allow untrusted SSL certificates. | |
![]() |
inCaCertFile | str | None | None | File holding one or more certificates to verify the peer with. | |
![]() |
outWebSocket | int | None | Connected socket ID. |




