This commit is contained in:
crusader 2017-08-31 18:00:47 +09:00
parent 4146e11294
commit 65ac3aa84e

View File

@ -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)
}