mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-06 00:16:49 +08:00
feat: implement websocket and UI
This commit is contained in:
10
sio/adapter.go
Normal file
10
sio/adapter.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user