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

@ -16,6 +16,7 @@ export const S2CRequestTypes = {
WSDataText: 4,
WSDataBinary: 5,
WSClose: 6,
WSError: 7,
} as const;
export type S2CRequestType = ObjectValues<typeof S2CRequestTypes>;
@ -44,4 +45,8 @@ export type WSClosePayload = {
wasClean: boolean;
};
export type WSErrorPayload = {
message: string;
};
export { Transport } from "./Transport";