Discover Packages
github.com/c2pc/go-pkg/v2
websocket
package
Version:
v2.3.144
Opens a new window with list of versions in this module.
Published: Mar 29, 2025
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
NewClientListenerType = "new-Client"
CloseClientListenerType = "close-Client"
NewMessageListenerType = "new-message"
)
type Client struct {
ID int
}
type Listener struct {
Event string
Message []byte
ClientID int
}
type Message struct {
Type string `json:"type"`
Action string `json:"action"`
Message interface{} `json:"message"`
From *int `json:"from,omitempty"`
To []int `json:"to,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.