package
Version:
v1.0.36
Opens a new window with list of versions in this module.
Published: Oct 8, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Message struct {
Type int
Data []byte
}
type WSHandler struct {
}
type Websocket interface {
OnMessage(ctx context.Context, r *http.Request, w Writer, session sessions.Session, msg []byte, t int)
OnConnect(ctx context.Context, r *http.Request, w Writer, session sessions.Session)
OnDisconnect(ctx context.Context, r *http.Request, session sessions.Session)
}
type Writer interface {
WriteMessage(message Message)
Error(message string)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.