mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2026-02-04 07:44:32 +00:00
fix a type so jsr is happy.
This commit is contained in:
@@ -384,10 +384,10 @@ export class AbstractRelay {
|
||||
|
||||
// this is the function assigned to this.ws.onmessage
|
||||
// it's exposed for testing and debugging purposes
|
||||
public _onmessage(ev: MessageEvent<any>) {
|
||||
public _onmessage(ev: MessageEvent<any>): void {
|
||||
const json = ev.data
|
||||
if (!json) {
|
||||
return false
|
||||
return
|
||||
}
|
||||
|
||||
// shortcut EVENT sub
|
||||
|
||||
Reference in New Issue
Block a user