feat: implement websocket and UI

This commit is contained in:
Oarkflow
2024-10-22 21:12:55 +05:45
parent 05a673bcd6
commit f337e00b88
21 changed files with 1880 additions and 33 deletions

10
sio/adapter.go Normal file
View File

@@ -0,0 +1,10 @@
package sio
type Adapter interface {
Init()
Shutdown() error
BroadcastToBackend(*BroadcastMsg)
RoomcastToBackend(*RoomMsg)
BroadcastFromBackend(b chan<- *BroadcastMsg)
RoomcastFromBackend(r chan<- *RoomMsg)
}