Skip to content

homematicip.connection.websocket_handler

WebsocketHandler

Manages a WebSocket connection to Homematic IP and provides methods for starting, stopping, and processing messages. Supports automatic reconnect, adding handlers, and status queries.

add_on_connected_handler

add_on_connected_handler

Adds a handler that is called when the connection is established.

add_on_disconnected_handler

add_on_disconnected_handler

Adds a handler that is called when the connection is closed.

add_on_message_handler

add_on_message_handler

Adds a handler for incoming messages.

add_on_reconnect_handler

add_on_reconnect_handler

Adds a handler that is called when the connection is re-established.

is_connected

is_connected

Returns True if the WebSocket connection is active.