neko/internal/types/websocket.go

16 lines
244 B
Go
Raw Normal View History

package types
import "net/http"
type WebSocket interface {
Address() string
Send(v interface{}) error
Destroy() error
}
2020-11-01 16:09:48 +01:00
type WebSocketManager interface {
2020-10-28 20:29:18 +01:00
Start()
Shutdown() error
Upgrade(w http.ResponseWriter, r *http.Request) error
}