Wrote roots-ws golang implementation.
This commit is contained in:
18
roots-ws.go
Normal file
18
roots-ws.go
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user