Connect to a remote WebSocket server.
Namespace:
Kaazing.HTML5Assembly: Kaazing.Gateway (in Kaazing.Gateway.dll)
Syntax
Visual Basic |
---|
Public Sub Connect ( _ location As String, _ protocol As String _ ) |
C# |
---|
public void Connect( string location, string protocol ) |
Visual C++ |
---|
public: void Connect( String^ location, String^ protocol ) |
Parameters
- location
- Type: System..::..String
URI string such as "ws://example.com:8000/path"
- protocol
- Type: System..::..String
Subprotocol to be communicated over the WebSocket