Simple websocket client.
Signature | hs.websocket.new(url, callback) -> object |
---|---|
Type | Function |
Description | Creates a new websocket connection. Parameters:
Returns:
Notes:
|
Signature | hs.websocket:close() -> object |
---|---|
Type | Method |
Description | Closes a websocket connection. Parameters:
Returns:
|
Signature | hs.websocket:send(message) -> object |
---|---|
Type | Method |
Description | Sends a message to the websocket client Parameters:
Returns:
|
Signature | hs.websocket:status() -> string |
---|---|
Type | Method |
Description | Gets the status of a websocket. Parameters:
Returns:
|