2017-11-27 17:12:26 +00:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/valyala/fasthttp"
|
|
|
|
|
|
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GatewayRPCHandler interface {
|
|
|
|
Init(serverCTX cwf.ServerContext) error
|
2017-12-01 08:12:09 +00:00
|
|
|
Handshake(socketCTX cwf.SocketContext, ctx *fasthttp.RequestCtx) (id string, extensionsHeader *fasthttp.ResponseHeader)
|
2017-11-27 17:12:26 +00:00
|
|
|
|
|
|
|
Validate()
|
|
|
|
}
|