focalboard/server/api
Miguel de la Cruz 3ae821d2e8
Refactor websockets state and lifecycle (#3315)
* Refactor websockets state and lifecycle

This PR moves the state of the authentication and subscriptions to the
websockets client, allowing for multiple components to communicate
with it and request subscriptions independently. With this change, the
lifecycle of the websockets client is now managed on a component, and
a hook is provided for easy access to it from individual components.

* Fix linter

* Integrating the new websockets in channels integration with the RHS and board selector

* Some small fixes around boards-channels relationship

* Make the boards unfurl to always use the current team

* Fixing weird behaviors in websockets and other small data related bugs in channel-board relationship

* Only warn if withWebSockets is used without a base connection

* Fix tests

* Fix linter

* Update snapshot

* Fixing plugin tests

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-07-14 12:31:51 +02:00
..
admin.go Replace mlog with server v6 mlog (#1088) 2021-08-25 16:08:01 -04:00
api.go Refactor websockets state and lifecycle (#3315) 2022-07-14 12:31:51 +02:00
archive.go Update focalboard endpoints to v2 namespace (#2781) 2022-04-13 15:24:32 -05:00
audit.go Updated go version (#3189) 2022-06-06 10:18:21 +02:00
auth.go Update focalboard endpoints to v2 namespace (#2781) 2022-04-13 15:24:32 -05:00
context.go fix remaining golangci linter warnings (#686) 2021-07-08 21:09:02 -04:00