docs » hs.websocket
Simple websocket client.
- Functions - API calls offered directly by the extension
- new
- Methods - API calls which can only be made on an object returned by a constructor
- close
- send
- status
| 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[, isData]) -> object |
|---|---|
| Type | Method |
| Description | Sends a message to the websocket client. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Signature | hs.websocket:status() -> string |
|---|---|
| Type | Method |
| Description | Gets the status of a websocket. |
| Parameters |
|
| Returns |
|