5 Commits
Author SHA1 Message Date
Jannis Mattheis b6094d54f2 fix: prevent deadlock by timeouting blocking writes 2024-12-07 12:15:44 +01:00
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 0abd53ec94 Fix linting 2023-03-17 09:59:23 +01:00
Jannis Mattheis 3191988801 Don't fail on unknown session
There may be a race condition if a user disconnects and the other peer
just sent a p2p message.

Fixes #14
2020-10-23 19:40:06 +02:00
Jannis Mattheis 81743cbb4d Add websocket handler 2020-10-04 20:10:38 +02:00