Documentation
¶
Index ¶
- Variables
- func NewReceiveMessage(namespace string, clientID int64, body []byte) (*receiveMessage, error)
- func NewSendMessage(namespace string, id, clientID, userSubscriptionID int64, typ string, ...) (*sendMessage, error)
- type WS
- func (n *WS) IsConnecting(namespace string, clientID int64) bool
- func (n *WS) MustNotify(ctx context.Context, namespace string, id, clientID, userID int64, typ string, ...) (interface{}, error)
- func (n *WS) Notify(ctx context.Context, namespace string, id, clientID, userID int64, typ string, ...) (msgID int64, errR error)
- func (n *WS) Register(namespace string, id int64, conn *websocket.Conn)
- func (n *WS) Run()
- func (n *WS) ServeWebsocket(c echo.Context) error
- func (n *WS) WaitResponse(ctx context.Context, msgID int64) (data interface{}, errR error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GlobalHub *hub
)
Functions ¶
func NewReceiveMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.