mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-13 03:59:57 +02:00
fix: outgoing pings
This commit is contained in:
parent
f152a5e0c7
commit
ee9502bc3e
@ -129,7 +129,7 @@ func (c *Connection) Ping() error {
|
|||||||
c.mutex.Lock()
|
c.mutex.Lock()
|
||||||
defer c.mutex.Unlock()
|
defer c.mutex.Unlock()
|
||||||
|
|
||||||
return wsutil.WriteClientMessage(c.writer, ws.OpPing, nil)
|
return wsutil.WriteClientMessage(c.conn, ws.OpPing, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Connection) WriteMessage(data []byte) error {
|
func (c *Connection) WriteMessage(data []byte) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user