websocket

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

creates a new Socket for bidirectional communication with the server.

Parameters

url

url to connect

protocols

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