add websocket destroy reason.

This commit is contained in:
Miroslav Šedivý
2021-09-02 21:52:23 +02:00
parent d7671942a6
commit c85d00e507
5 changed files with 9 additions and 29 deletions

View File

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