stop

fun stop()

If the websocket is connected, disconnect by killing its job.