This module provides a websocket client implementation to interact with external systems, similar to http client. It is not for routing SIP traffic. It relies on libwebsockets library (https://libwebsockets.org/).
| Parámetro | Tipo | Descripción |
|---|---|---|
| protocol | str | 3.2. timeout_init (int) 3.3. timeout_read (int) 3.4. verbosity (int) |
| timeout_init | int | 3.3. timeout_read (int) 3.4. verbosity (int) |
| timeout_read | int | 3.4. verbosity (int) |
| verbosity | int | 3.1. protocol (str) |
| protocol | str | The websocket sub-protocol. |
| timeout_init | int | The interval in microseconds to wait for websocket connection to be initialized. |
| timeout_read | int | The interval in microseconds to wait for the response of the lwsc_request() group of functions. |
| verbosity | int | Control the verbosity of debug messages on libwebsockets events, higher value means more debug messages. It has to be a positive number, currently 2 or higher results in maximum verbosity. |
4.2. lwsc_notify_proto(wsurl, wsproto, data) 4.3. lwsc_request(wsurl, data) 4.4. lwsc_request_proto(wsurl, wsproto, data)
4.3. lwsc_request(wsurl, data) 4.4. lwsc_request_proto(wsurl, wsproto, data)
4.4. lwsc_request_proto(wsurl, wsproto, data)
4.1. lwsc_notify(wsurl, data)
Send data via websockets to the address specified by wsurl. No response is expected. Transmission is not guaranteed (e.g., cannot connect to target).
Send data via websockets to the address specified by wsurl, providing websocket protocol. No response is expected. Transmission is not guaranteed (e.g., cannot connect to target).
Send data via websockets to the address specified by wsurl, a response is expected and made available in $lwsc(rdata).
Send data via websockets to the address specified by wsurl, providing websocket protocol. A response is expected and made available in $lwsc(rdata).
Copyright © 2021 asipto.com