mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 14:20:01 -04:00
chunking
This commit is contained in:
parent
db82f47aca
commit
753bccf51b
6 changed files with 2264 additions and 179 deletions
|
@ -9,10 +9,13 @@ export const C2SRequestTypes = {
|
|||
export type C2SRequestType = ObjectValues<typeof C2SRequestTypes>;
|
||||
|
||||
export const S2CRequestTypes = {
|
||||
HTTPResponse: 0,
|
||||
WSOpen: 1,
|
||||
WSDataText: 2,
|
||||
WSDataBinary: 3,
|
||||
HTTPResponseStart: 0,
|
||||
HTTPResponseChunk: 1,
|
||||
HTTPResponseEnd: 2,
|
||||
WSOpen: 3,
|
||||
WSDataText: 4,
|
||||
WSDataBinary: 5,
|
||||
WSClose: 6,
|
||||
} as const;
|
||||
export type S2CRequestType = ObjectValues<typeof S2CRequestTypes>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue