initial onerror impl

This commit is contained in:
Spencer Pogorzelski 2023-08-14 14:13:39 -07:00
parent 8d8e5bbf2e
commit feaac8d6c3
4 changed files with 45 additions and 17 deletions

View file

@ -93,11 +93,13 @@ export class AdriftBareClient extends Client {
data,
})
);
},
(message: string) => {
ws.dispatchEvent(new ErrorEvent("error", { message }));
}
);
ws.send = (data: any) => {
console.log("Reached AdriftClient.ts send");
send(data);
};