provide relay status

This commit is contained in:
Richard Bondi
2021-01-23 18:21:04 -03:00
committed by fiatjaf
parent ea5101dbc1
commit a87fad91a6
+3
View File
@@ -114,6 +114,9 @@ export function relayConnect(url, onEvent, onNotice) {
},
close() {
ws.close()
},
get status() {
return ws.readyState
}
}
}