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

21
roots-ws_test.go Normal file
View File

@@ -0,0 +1,21 @@
package roots_ws
import "testing"
func TestConnectionStatusConstants(t *testing.T) {
seen := make(map[ConnectionStatus]bool)
constants := []ConnectionStatus{
StatusDisconnected,
StatusConnecting,
StatusConnected,
StatusClosing,
}
for i, status := range constants {
if seen[status] {
t.Errorf("Duplicate value found for constant at index %d: %d", i, status)
}
seen[status] = true
}
}