11 Commits
Author SHA1 Message Date
Jannis Mattheis a0f3c37498 fix: race condition
In client.go

    if room, ok := message.(outgoing.Room); ok {
            c.info.RoomID = room.ID
    }

this part isn't thread safe. It could happen that user disconnected but
wasn't removed from a room, because the disconnecting go routine
couldn't see the roomID yet.
2024-10-11 15:11:07 +02:00
Jannis Mattheis 46467a3f79 fix: update dependencies 2024-09-27 16:20:15 +02:00
Jannis Mattheis da3f5b1692 fix: goroutine leak 2024-09-27 16:20:15 +02:00
Jannis Mattheis 4df473779d fix: log full events 2024-08-17 18:29:44 +02:00
Jannis Mattheis 0abd53ec94 Fix linting 2023-03-17 09:59:23 +01:00
Jannis Mattheis 4c849059ba Use logged in username as username in room 2020-10-09 13:46:37 +00:00
Jannis Mattheis 10b0b40324 Fix deadlock 2020-10-09 08:03:56 +00:00
Jannis Mattheis 343c1e747e Improve logging 2020-10-09 08:03:56 +00:00
Jannis Mattheis 91bee5750e Fix "write on closed channel"
Fixes #19
2020-10-09 08:03:56 +00:00
Jannis Mattheis d4518eaf89 Log events 2020-10-09 08:03:56 +00:00
Jannis Mattheis 81743cbb4d Add websocket handler 2020-10-04 20:10:38 +02:00