Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWebsocket ¶
func InitWebsocket(svcCtx *svc.ServiceContext, addrs []string, accept int) (err error)
InitWebsocket listen all tcp.bind and start accept connections.
Types ¶
type CometServer ¶
type CometServer struct {
// contains filtered or unexported fields
}
func NewCometServer ¶
func NewCometServer(svcCtx *svc.ServiceContext) *CometServer
func (*CometServer) ServeWebsocket ¶
ServeWebsocket serve a websocket connection.
Click to show internal directories.
Click to hide internal directories.