Back to Aurora Vision Library website
You are here: Start » Function Reference » System » WebSocket » WebSocket_Connect

WebSocket_Connect
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Connects to a remote server using WebSocket protocol.
Syntax
C++
C#
void avl::WebSocket_Connect ( avl::WebSocketConnectionState& ioState, const atl::String& inHostName, atl::Optional<int> inTimeout, atl::Optional<int> inReadBufferSize, bool inAllowUntrusted, const atl::Optional<atl::File>& inCaCertFile, atl::Conditional<avl::WebSocketId>& outWebSocket )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
ioState | WebSocketConnectionState& | Object used to maintain state of the function. | ||
![]() |
inHostName | const String& | \"ws://\" | URL address of the remote server. | |
![]() |
inTimeout | Optional<int> | 0 - ![]() |
NIL | Request timeout in seconds. |
![]() |
inReadBufferSize | Optional<int> | NIL | Read buffer size. | |
![]() |
inAllowUntrusted | bool | False | Whether or not to allow untrusted SSL certificates. | |
![]() |
inCaCertFile | const Optional<File>& | NIL | File holding one or more certificates to verify the peer with. | |
![]() |
outWebSocket | Conditional<WebSocketId>& | Connected socket ID. |