Method Protocols.WebSocket.Connection()->connect()
- Method connect
intconnect(Standards.URIendpoint,void|mapping(string:string)extra_headers)- Description
Connect to a remote WebSocket. 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.