fix a type so jsr is happy.

This commit is contained in:
fiatjaf
2026-02-02 18:49:17 -03:00
parent ca29d9b515
commit 28f7553187

View File

@@ -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