You are here: Start » AVL.NET » Invoke.WebSocket_Connect
Connects to a remote server using WebSocket protocol.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void WebSocket_Connect ( Avl.WebSocketConnectionState ioState, string inHostName, Optional<int> inTimeout, Optional<int> inReadBufferSize, bool inAllowUntrusted, Optional<string> inCaCertFile, Conditional<int> outWebSocket )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
| ioState | Avl.WebSocketConnectionState | ||||
![]()  | inHostName | string | \"ws://\" | URL address of the remote server. Default value: "ws://". | |
![]()  | inTimeout | Atl.Optional<int> | <0, INF> | Request timeout in seconds. Default value: atl::NIL. | |
![]()  | inReadBufferSize | Atl.Optional<int> | Read buffer size. Default value: atl::NIL. | ||
![]()  | inAllowUntrusted | bool | False | Whether or not to allow untrusted SSL certificates. Default value: False. | |
![]()  | inCaCertFile | Atl.Optional<string> | File holding one or more certificates to verify the peer with. Default value: atl::NIL. | ||
![]()  | outWebSocket | Atl.Conditional<int> | Connected socket ID. | 


