ing
This commit is contained in:
parent
4146e11294
commit
65ac3aa84e
@ -1,25 +0,0 @@
|
||||
package overflow_gateway_websocket
|
||||
|
||||
import "context"
|
||||
|
||||
// ServerOptions is configuration of the websocket server
|
||||
type WebOptions struct {
|
||||
ServerOptions2
|
||||
}
|
||||
|
||||
func (wo *WebOptions) OnConnection(soc Socket) {
|
||||
|
||||
}
|
||||
|
||||
func NewOption() ServerHandler {
|
||||
wo := &WebOptions{}
|
||||
wo.EnableCompression = true
|
||||
wo.Validate()
|
||||
return wo
|
||||
}
|
||||
|
||||
func test() {
|
||||
sh := NewOption()
|
||||
ctx := context.Background()
|
||||
NewServer2(ctx, sh)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user