move websocket Ping to peer.

This commit is contained in:
Miroslav Šedivý
2021-09-24 15:15:59 +02:00
parent 41d8fa7e22
commit d91c0a9f7f
3 changed files with 17 additions and 5 deletions

View File

@ -16,6 +16,7 @@ type CheckOrigin func(r *http.Request) bool
type WebSocketPeer interface {
Send(event string, payload interface{})
Ping() error
Destroy(reason string)
}