mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 14:20:01 -04:00
initial onerror impl
This commit is contained in:
parent
8d8e5bbf2e
commit
feaac8d6c3
4 changed files with 45 additions and 17 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue