Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web room bridge #17

Merged
merged 3 commits into from
Feb 11, 2021
Merged

web room bridge #17

merged 3 commits into from
Feb 11, 2021

Conversation

cryptix
Copy link
Member

@cryptix cryptix commented Feb 10, 2021

This should show a list of id that are in the room on the dashboard.

@cryptix cryptix force-pushed the web-room-bridge branch 2 times, most recently from 7768166 to 4e0577c Compare February 10, 2021 18:59
@cryptix cryptix marked this pull request as ready for review February 11, 2021 14:22
There is a new roomstate package now with a Manager which is shared between muxrpc and the http
handler(s).

Also adds a list of peers in the room to admin dashboard.
* fix nav link
* fix roomstate lock and ticker
* fix copy pasta typos

web/handlers: stop using /testing/base in news

This was a brainfart. The idea for a more minimal base template came
from another project with different frontend code.

This stopped us from seeing tempalting errors in the nav area.

Might want to scratch these tests alltogether and just have one place
with all the http tests.
@cryptix
Copy link
Member Author

cryptix commented Feb 11, 2021

the big part of this was beea19f - there now is the roomstate package which implements a Manager, which supplies the following methods:

func (m *Manager) AddEndpoint(who refs.FeedRef, edp muxrpc.Endpoint)
func (m *Manager) Has(who refs.FeedRef) (muxrpc.Endpoint, bool)
func (m *Manager) List() []string
func (m *Manager) Register(sink broadcasts.RoomChangeSink)
func (m *Manager) Remove(who refs.FeedRef)

Has(ref) can be used to get a muxrpc client to that peer, if it's connected. Right now only List() is used on the dashboard landing page.

@cryptix
Copy link
Member Author

cryptix commented Feb 11, 2021

Fixes #9

@cryptix cryptix merged commit fe26d62 into master Feb 11, 2021
@cryptix cryptix deleted the web-room-bridge branch February 11, 2021 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants