Wrote roots-ws golang implementation.

This commit is contained in:
Jay
2025-11-02 14:31:46 -05:00
parent 53c42911b4
commit 82e58a193d
13 changed files with 1972 additions and 0 deletions

18
roots-ws.go Normal file
View File

@@ -0,0 +1,18 @@
package roots_ws
// ConnectionStatus represents the current state of a WebSocket connection.
type ConnectionStatus int
const (
// StatusDisconnected indicates the connection is not active and no connection attempt is in progress.
StatusDisconnected ConnectionStatus = iota
// StatusConnecting indicates a connection attempt is currently in progress but not yet established.
StatusConnecting
// StatusConnected indicates the connection is active and ready for message exchange.
StatusConnected
// StatusClosing indicates the connection is in the process of shutting down gracefully.
StatusClosing
)