websocket

fun websocket(url: String, vararg protocols: String): Socket

creates a new Socket for bidirectional communication with the server.

Parameters

protocols

one or more protocols to use by the socket, default empty

url

url to connect