package
Version:
v0.0.166
Opens a new window with list of versions in this module.
Published: Feb 21, 2024
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.