neko/internal/types/webscoket.go
2020-10-28 20:29:18 +01:00

16 lines
244 B
Go

package types
import "net/http"
type WebSocket interface {
Address() string
Send(v interface{}) error
Destroy() error
}
type WebSocketHandler interface {
Start()
Shutdown() error
Upgrade(w http.ResponseWriter, r *http.Request) error
}