relaypool: continue on ping msg

This commit is contained in:
Gustavo Chain 2022-02-19 09:56:15 +01:00 committed by fiatjaf
parent dd43f4c495
commit c0a2be91a1

View File

@ -103,6 +103,7 @@ func (r *RelayPool) Add(url string, policy RelayPoolPolicy) error {
}
if typ == websocket.PingMessage {
conn.WriteMessage(websocket.PongMessage, nil)
continue
}
if typ != websocket.TextMessage || len(message) == 0 || message[0] != '[' {