| panic: concurrent write to websocket connection
|
| goroutine 102 [running]:
| github.com/fasthttp/websocket.(*messageWriter).flushFrame(0xc00012bc70, 0xc000294001, 0xc000294010, 0x0, 0x0, 0x10, 0xc000294010)
| github.com/fasthttp/[email protected]/conn.go:610 +0x62e
| github.com/fasthttp/websocket.(*Conn).WriteMessage(0xc0000f8160, 0x1, 0xc000294010, 0x9, 0x9, 0x1, 0x1)
| github.com/fasthttp/[email protected]/conn.go:763 +0x249
| github.com/dechristopher/lioctad/www/ws.ConnHandler(0xc0005a07b0)
| github.com/dechristopher/lioctad/www/ws/ws.go:86 +0xa53
| github.com/gofiber/websocket/v2.New.func2.4(0xc0000f8160)
| github.com/gofiber/websocket/[email protected]/websocket.go:109 +0x69
| github.com/fasthttp/websocket.(*FastHTTPUpgrader).Upgrade.func1(0xb9e2d8, 0xc0005a08a0)
| github.com/fasthttp/[email protected]/server_fasthttp.go:201 +0x1be
| github.com/valyala/fasthttp.hijackConnHandler(0xb90280, 0xc0000bd7a0, 0xb9e438, 0xc0000ba268, 0xc0000e1680, 0xc000444480)
| github.com/valyala/[email protected]/server.go:2307 +0x7b
| created by github.com/valyala/fasthttp.(*Server).serveConn
| github.com/valyala/[email protected]/server.go:2268 +0xad8
| panic: runtime error: invalid memory address or nil pointer dereference
| [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x956f6a]
|
| goroutine 136 [running]:
| sync.(*Mutex).Unlock(...)
| sync/mutex.go:186
| github.com/dechristopher/lioctad/www/ws/common.Unicast(0xc000366000, 0xe2, 0xf0, 0xc00016bf20, 0xc0000b9a04, 0x4, 0xc0000b9a20, 0x10, 0x1)
| github.com/dechristopher/lioctad/www/ws/common/common.go:22 +0x20a
| created by github.com/dechristopher/lioctad/www/ws/common.Broadcast
| github.com/dechristopher/lioctad/www/ws/common/common.go:30 +0x134