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