Skip to content

Conversation

@l0f3n
Copy link
Contributor

@l0f3n l0f3n commented Jan 15, 2025

Solves #11

Use server-sent events to automatically open the start page when the host starts the lobby. Since they are one-sided, keep them alive as long the lobby is alive. If an extension joins a different lobby, it automatically closes its current eventstream (which the server wont know about) and wont receive any updates from the old lobby.

@l0f3n l0f3n requested a review from sornas January 15, 2025 10:51
@l0f3n l0f3n force-pushed the open-first-page-on-start branch from 60a23bd to e068527 Compare January 15, 2025 11:04
@l0f3n l0f3n requested a review from BeeSneeze January 15, 2025 11:12
Base automatically changed from dev to main January 15, 2025 17:10
@l0f3n l0f3n force-pushed the open-first-page-on-start branch from 0f901f7 to c2ab453 Compare January 15, 2025 18:13
@l0f3n l0f3n requested a review from sornas January 15, 2025 18:23
@sornas
Copy link
Contributor

sornas commented Jan 17, 2025

i'd like to test this out too, probably tomorrow

@l0f3n l0f3n force-pushed the open-first-page-on-start branch 4 times, most recently from 7d91e08 to eec41f1 Compare January 17, 2025 16:15
@l0f3n
Copy link
Contributor Author

l0f3n commented Jan 17, 2025

Also added the open first article button, so fixes #9. Very basic.

This was linked to issues Jan 17, 2025
@sornas
Copy link
Contributor

sornas commented Jan 17, 2025

actually, maybe "open start page" could read "open first page" because start page could just as well refer to the wikiweaver start page (even though we don't really have one)

@sornas sornas mentioned this pull request Jan 19, 2025
l0f3n added 3 commits January 19, 2025 17:09
Use server-sent events to automatically open the start page when the
host starts the lobby. Since they are one-sided, keep them alive as long
the lobby is alive. If an extension joins a different lobby, it
automatically closes its current eventstream (which the server wont know
about) and wont receive any updates from the old lobby.

Signed-off-by: Victor Löfgren <[email protected]>
Signed-off-by: Victor Löfgren <[email protected]>
@l0f3n l0f3n force-pushed the open-first-page-on-start branch from eec41f1 to 84befb2 Compare January 19, 2025 16:17
l0f3n added 2 commits January 19, 2025 17:20
Signed-off-by: Victor Löfgren <[email protected]>
Signed-off-by: Victor Löfgren <[email protected]>
@l0f3n l0f3n force-pushed the open-first-page-on-start branch from 84befb2 to d811a95 Compare January 19, 2025 16:20
@l0f3n l0f3n merged commit 9c7fa15 into main Jan 19, 2025
1 check passed
@l0f3n l0f3n deleted the open-first-page-on-start branch January 19, 2025 16:21
@l0f3n l0f3n self-assigned this Feb 6, 2025
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.

open first article when game starts "go to first article"-button

3 participants