overflow_gateway_websocket/servlet/servlet_handlers.go
crusader 4542ab52e6 ing
2017-11-14 01:50:22 +09:00

47 lines
1.0 KiB
Go

package servlet
import (
cwf "git.loafle.net/commons_go/websocket_fasthttp"
)
type ServletHandlers struct {
cwf.SocketHandlers
}
// func (sh *ServletHandlers) Init() error {
// if err := sh.SocketHandlers.Init(); nil != err {
// return err
// }
// return nil
// }
// // OnConnect invoked when client is connected
// // If you override ths method, must call
// func (sh *ServletHandlers) OnConnect(soc *cwf.Socket) {
// sh.SocketHandlers.OnConnect(soc)
// }
// // OnDisconnect invoked when client is disconnected
// // If you override ths method, must call
// func (sh *ServletHandlers) OnDisconnect(soc *cwf.Socket) {
// sh.SocketHandlers.OnDisconnect(soc)
// }
// // Destroy invoked when server is stopped
// // If you override ths method, must call
// func (sh *ServletHandlers) Destroy() {
// sh.SocketHandlers.Destroy()
// }
// func (sh *ServletHandlers) Validate() {
// sh.SocketHandlers.Validate()
// if "" == sh.EntryPath {
// logging.Logger().Panic("Geteway Server: The path of entry must be specified")
// }
// }