module
Version:
v0.0.0-...-f0a9cfb
Opens a new window with list of versions in this module.
Published: May 27, 2023
License: Apache-2.0
Opens a new window with license information.
README
¶
websocket
a small go websocket library with business router
一个封装的包含业务路由的go websocket库,内置多协程处理和超时控制。
使用案例:https://github.com/youngsailor/websocket-example
业务路由参考:
func WebsocketRouterInit(ctx context.Context, wsServer iface.IServer) {
wsServer.AddRouter(ctx, "print", &controller.PrintRouter.Print)
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.