overflow_probe/websocket/options.go
crusader@loafle.com abaf9c217a WebSocket client
2017-08-10 16:39:58 +09:00

24 lines
483 B
Go

package websocket
import (
"net/http"
"time"
)
type Options interface {
}
type options struct {
OnError func(res http.ResponseWriter, req *http.Request, status int, reason error)
OnCheckOrigin func(req *http.Request) bool
WriteTimeout time.Duration
ReadTimeout time.Duration
PongTimeout time.Duration
PingTimeout time.Duration
PingPeriod time.Duration
MaxMessageSize int64
BinaryMessage bool
ReadBufferSize int
WriteBufferSize int
}