Signals were always being sent down - changed flag never cleared. This wiped out the user input area in chat. (#13)
Publish every 100ms Co-authored-by: João Gonçalves <joao.goncalves01@gmail.com>
This commit is contained in:
@@ -129,7 +129,7 @@ func NewRoom[TR any, TU comparable](n string) *Room[TR, TU] {
|
||||
|
||||
func (r *Room[TR, TU]) run() {
|
||||
defer close(r.done)
|
||||
publishTicker := time.NewTicker(250 * time.Millisecond)
|
||||
publishTicker := time.NewTicker(100 * time.Millisecond)
|
||||
defer publishTicker.Stop()
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user