Method Protocols.WebSocket.Connection()->connect()
- Method connect
int
connect(Standards.URI
endpoint
,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.