Implement Poke functionality, refine talking status and add local log events

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-17 00:53:50 +01:00
parent be5e26486c
commit 3a57f41fc2
5 changed files with 125 additions and 20 deletions

View File

@@ -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