websocket

module
v0.0.0-...-f0a9cfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2023 License: Apache-2.0

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL