Method Protocols.WebSocket.Connection()->connect()
- Method
connect
intconnect(string|Standards.URIendpoint,void|mapping(string:string)extra_headers,void|arrayextensions)- Description
Connect to the remote
endpointwith optional request headers specified inheaders. This method will send the actual HTTP request to switch protocols to the server and once a HTTP 101 response is returned, switch the connection to WebSockets and call the onopen callback.