Code Monkey home page Code Monkey logo

Comments (7)

graywolf336 avatar graywolf336 commented on May 9, 2024 1

Updated the list and added persist chat

from owncast.

gabek avatar gabek commented on May 9, 2024

Disable chat after stream ends.

With 8878ca1 the web frontend now knows the time the stream disconnected. We can add a grace period so N minutes after a disconnect is when the chat is locked down. What should that value be? 5 minutes comes to mind as a middle ground. Anything longer than that and the streamer probably isn't coming back, but I could see somebody dropping off for a few minutes for whatever reason. Rebooting their computer, changing streaming settings, etc. What do you think?

from owncast.

gabek avatar gabek commented on May 9, 2024

Persist chat

How far back should we persist?

We were earlier talking about Boltdb, but it might make more sense to use SQLite so we can efficiently query against timestamps and use it more as live storage than just on-disk source of restoring an array of messages.

from owncast.

gingervitis avatar gingervitis commented on May 9, 2024

I'll look into implementing checkbox 3 - with tis logic
When status.online has flipped to false; then disable chat after X time.

from owncast.

gingervitis avatar gingervitis commented on May 9, 2024

Re: persisting chat - include timestamps with each message.

from owncast.

gabek avatar gabek commented on May 9, 2024

@graywolf336 Curious about your thoughts on using an ORM like https://github.com/go-gorm/gorm for working with the chat persistence, have you ever used it or anything similar? I've only used the database/sql stuff, but I'm curious if there's any niceties around an ORM or if it's worth it for something simple like this.

from owncast.

gabek avatar gabek commented on May 9, 2024

Added basic chat persistence.

from owncast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.