1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00
focalboard/server/ws
Miguel de la Cruz ce98ec55fc
Recovers inactive websockets connections on reconnect in plugin mode (#1324)
* Stores a cache of inactive connections so their subscriptions are recovered on reconnections

* Adds test for getUserIDsForWorkspace and simplify messages through helpers

* Make the plugin websocket client more resilient

* Remove missed event callback and limit ws state polling to one at a time

* Add read lock for the plugin adapter and guarantee atomic ops on inactiveAt

* Add mutex to the plugin adapter client and tests to cover for races

* Split plugin adapter mutex in two and use them to lock only on data access

* Group plugin adapter fields by the mutex that's guarding them
2021-09-29 18:19:34 +02:00
..
mocks Recovers inactive websockets connections on reconnect in plugin mode (#1324) 2021-09-29 18:19:34 +02:00
adapter.go Config for share board (#1187) 2021-09-16 13:31:02 -06:00
common.go Propagate block changes to all of the cluster nodes in plugin mode (#1213) 2021-09-16 12:18:11 +02:00
helpers_test.go Recovers inactive websockets connections on reconnect in plugin mode (#1324) 2021-09-29 18:19:34 +02:00
plugin_adapter_client.go Recovers inactive websockets connections on reconnect in plugin mode (#1324) 2021-09-29 18:19:34 +02:00
plugin_adapter_cluster.go Propagate block changes to all of the cluster nodes in plugin mode (#1213) 2021-09-16 12:18:11 +02:00
plugin_adapter_test.go Recovers inactive websockets connections on reconnect in plugin mode (#1324) 2021-09-29 18:19:34 +02:00
plugin_adapter.go Recovers inactive websockets connections on reconnect in plugin mode (#1324) 2021-09-29 18:19:34 +02:00
server_test.go Add a plugin adapter to reuse MM websocket in plugin mode (#1079) 2021-08-27 10:59:14 +02:00
server.go Adds workspaceID to blocks and makes board page only reacts to the workspace updates (#1299) 2021-09-22 13:57:00 -06:00