tuxeatpi.libs.websocket module¶
Module defining abstractWebsocket class
-
class
tuxeatpi.libs.websocket.
AbstractWebsocketConnection
(url, logger)¶ Bases:
object
WebSocket connection object to handle Nuance server communications
-
MSG_AUDIO
= 2¶
-
MSG_JSON
= 1¶
-
close
()¶ Close WebSocket connection
-
connect
(app_id, app_key, use_plaintext=True)¶ Connect to the websocket
-
receive
()¶ Handle server response
-
send_audio
(audio)¶ Send audio to the server
-
send_message
(msg)¶ Send json message to the server
-