ing
This commit is contained in:
parent
ab4f7f28be
commit
b229204f3e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user