owulveryck / goMarkableStream

A utility to stream (and record) from a Remarkable2 without hack or third party dependencies
MIT License
593 stars 24 forks source link

Serving pen and touch events #87

Closed owulveryck closed 1 year ago

owulveryck commented 1 year ago

This PR has modified the event handling.

goMarkableStream now listens to events continuously, utilizing a publish-subscribe mechanism. The main goroutine sends events to the event bus.

Upon connection, a handler subscribes to the event bus.

Additionally, a new endpoint, "/events," has been added to publish events over a WebSocket.