This commit is contained in:
crusader 2017-08-30 14:09:26 +09:00
parent ab4f7f28be
commit b229204f3e

View File

@ -10,6 +10,7 @@ import (
type (
OnConnectionFunc func(soc Socket)
OnDisconnectedFunc func(soc Socket)
OnCheckOriginFunc func(ctx *fasthttp.RequestCtx) bool
)
const (
@ -32,7 +33,7 @@ var (
type ServerOptions struct {
OnConnection OnConnectionFunc
OnDisconnected OnDisconnectedFunc
OnCheckOrigin func(ctx *fasthttp.RequestCtx) bool
OnCheckOrigin OnCheckOriginFunc
OnError func(ctx *fasthttp.RequestCtx, status int, reason error)
IDGenerator func(ctx *fasthttp.RequestCtx) string