Method Protocols.WebSocket.Connection()->connect()
- Method connect
int
connect(string
|Standards.URI
endpoint
,void
|mapping
(string
:string
)extra_headers
,void
|array
extensions
)- Description
Connect to the remote
endpoint
with 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.