esppy.windows.Subscriber.start

Subscriber.start(self)

Initialize the web socket and start it in its own thread

Notes

The thread created in the background will continue to run unless explicitly stopped using the stop() method.

Examples

Create subscriber instance

>>> sub = Subscriber(window, on_event=on_event)

Start processing events

>>> sub.start()