Implement Poke functionality, refine talking status and add local log events
This commit is contained in:
@@ -25,8 +25,18 @@ const (
|
||||
|
||||
// Error events
|
||||
EventError EventType = "error"
|
||||
|
||||
// Poke events
|
||||
EventPoke EventType = "poke"
|
||||
)
|
||||
|
||||
// PokeEvent is emitted when a poke message is received
|
||||
type PokeEvent struct {
|
||||
SenderID uint16
|
||||
SenderName string
|
||||
Message string
|
||||
}
|
||||
|
||||
// ConnectedEvent is emitted when the client successfully connects
|
||||
type ConnectedEvent struct {
|
||||
ClientID uint16
|
||||
|
||||
Reference in New Issue
Block a user