You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
igor-sirotin
changed the title
Enable subscribing to signals/events with an HTTP endpoint
Enable subscribing to signals/events with an HTTP endpoint in statusdSep 12, 2024
Problem
Desktop and Mobile get signals/events from status-go by settings a c-binding callback here:
status-go/signal/signals.go
Line 24 in c9b777a
This is not possible to do with RPC functional tests, which use HTTP RPC API of
statusd
.We should provide a way to subscribe to this events.
Implementation
There're 2 options:
Implement a websocket that will simply publish all arising events.
Implement an RPC endpoint
PopEvents
. All events are enqueued and can be popped with this endpoint.The pros and cons are pretty obvious. WebSocket is a more robust solution, but might be more difficult to use in tests.
Having such endpoint will greatly improve the abilities of the functional tests.
The text was updated successfully, but these errors were encountered: