Web UI port visibility and RTM
Goal
Implement the real time messaging for the Web UI communication channel
-
New instance registration mode - 2 -
Use personal tokens to authorize and get JWT token/URL for WS - 1 -
WS connection with JWT token. Channel/Endpoint? - -
Listening to commands. Format? JSON -
Data sending not changed, Platform REST API is used -
Ping/pong connection testing -
2 event types: commands and meta about instance. Meta should be responded in WS.
TODO / How to implement
-
Server-side web-sockets for Joe -
Registration handler - 2-3 -
Event management - 4 -
Store incoming messages - 1 // Nik: alter table ... set ( autovacuum_vacuum_scale_factor = 0.001 ); -- storage options
-
Request ID generation and processing - 4
-
-
Client-side web-sockets like Slack for Joe -
Connect/disconnect -
Ping -
Reconnect -
Event handling -
Platform Client integration
-
Send channel list on registration instead of:
// Wrong schema: too complicated, too slow, too unreliable
Console -> Platform T1 -> pg_notify -> ws-server -> Joe -> Platform T2 -> DB
-> DB T1 request
<- DB T2 response
Console <-
Acceptance criteria
Edited by Artyom Kartasov