provide relay status

This commit is contained in:
Richard Bondi
2021-01-23 12:57:31 -06:00
committed by fiatjaf
parent ea5101dbc1
commit a87fad91a6

View File

@@ -114,6 +114,9 @@ export function relayConnect(url, onEvent, onNotice) {
},
close() {
ws.close()
},
get status() {
return ws.readyState
}
}
}