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

Liveboard #884

Open
chanadmins opened this issue Feb 1, 2025 · 4 comments
Open

Liveboard #884

chanadmins opened this issue Feb 1, 2025 · 4 comments

Comments

@chanadmins
Copy link

Basically, posts should appear automatically without needing to refresh the page. This would be hugely beneficial for smaller altchans (~300 posts a day).

Here's how it's supposed to work:

recording.mp4

When a new post appears, there's a (1) or (*) shown in the tab title to notify the user about it.

How would you even go about implementing this?
I remember there was a soyjak party (vichan) custom script that just added a [Refresh] button at the top, which loaded new posts without refreshing the entire page. Maybe it could work like this but also refresh constantly?

@perdedora
Copy link
Member

perdedora commented Feb 2, 2025

May help (I don't if still works): js/live_index.js
Go to board/index.html/#


Real time updates is tricky without websockets or server sent events.

AFAIK soyjak has server sent events but I didn't look further at updates tho.

It's possible to implement SSE since we don't need the messages from the client. However, we would need a way to display the mod information for logged in users since auto_reload.js works by fetching HTML, parsing and inserting, hence the mod information for logged users.

@chanadmins
Copy link
Author

chanadmins commented Feb 2, 2025

May help (I don't if still works): js/live_index.js

Yeah, I have it, and I also made a new JS for notifications in tab title.

Still, it would be cool if new posts loaded automatically without needing to click "Click to expand" (which expands the whole thread for some reason)

@RealAngeleno
Copy link

I wish I could find that script, but I don't recall that script. Maybe it was after my time?

Live posting (like meguca) was a backburner feature.

@chanadmins
Copy link
Author

I wish I could find that script, but I don't recall that script. Maybe it was after my time?

Found it! https://pastebin.com/raw/UxY1Tpt3
I updated the URLs and it still works

rec.mp4

Only on soyjak party though. On my imageboard it just messes up a lot of things (probably because soyjak uses /thread/ instead of /res/ and so on)

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

No branches or pull requests

3 participants