Documentation
¶
Index ¶
- func BindGroup(conn *wsConnection, group string)
- func BindUniqueId(conn *wsConnection, uniqueId string)
- func BindUser(conn *wsConnection, user string)
- func NewWsConnection() *wsConnection
- func PolyfillWsConnection(req *http.Request) error
- func UnbindGroup(conn *wsConnection)
- func WebSocketHandler(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindUniqueId ¶
func BindUniqueId(conn *wsConnection, uniqueId string)
func NewWsConnection ¶
func NewWsConnection() *wsConnection
func PolyfillWsConnection ¶
PolyfillWsConnection 检查并处理websocket连接.(不再强制需要nginx设置websocket穿透) PS: 还有问题的话,可以参考下:"github.com/gorilla/websocket"中server.go的Upgrade方法.
func UnbindGroup ¶
func UnbindGroup(conn *wsConnection)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.