added simple websocket test
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled

- bump to v0.21.1
This commit is contained in:
2025-10-30 19:32:45 +00:00
parent 0ba555c6a8
commit 3486d3d4ab
6 changed files with 346 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ func (c *Client) Close() error {
return c.conn.Close()
}
// URL returns the relay URL.
func (c *Client) URL() string {
return c.url
}
// Send sends a JSON message to the relay.
func (c *Client) Send(msg interface{}) (err error) {
c.mu.Lock()