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

WebSocket_Connect
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Connects to a remote server using WebSocket protocol.
Syntax
C++
C#
void fil::WebSocket_Connect ( fil::WebSocketConnectionState& ioState, const ftl::String& inHostName, ftl::Optional<int> inTimeout, ftl::Optional<int> inReadBufferSize, bool inAllowUntrusted, const ftl::Optional<ftl::File>& inCaCertFile, ftl::Conditional<fil::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. |