Open a WebSocket connection to the given URL.
The connection begins immediately. Use the returned object's chainable setter methods to
register event callbacks. The connection stays open, with its callbacks, until either end
closes it, even if you don't keep a reference to it. It is automatically closed when
hs.reload() is called or the engine shuts down.
Open a WebSocket connection to the given URL. The connection begins immediately. Use the returned object's chainable setter methods to register event callbacks. The connection stays open, with its callbacks, until either end closes it, even if you don't keep a reference to it. It is automatically closed when
hs.reload()is called or the engine shuts down.