mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
websocket peer add event.
This commit is contained in:
@ -15,7 +15,7 @@ type WebSocketHandler func(Session, WebSocketMessage) bool
|
||||
type CheckOrigin func(r *http.Request) bool
|
||||
|
||||
type WebSocketPeer interface {
|
||||
Send(v interface{}) error
|
||||
Send(event string, payload interface{})
|
||||
Destroy()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user