Skip to content

StateSerializer

Defined in: src/http/types.ts:204

Serializer for stream state objects stored in state tokens.

deserialize(bytes): any;

Defined in: src/http/types.ts:208

Decode the bytes recovered from a state token back into a state object.

Parameter Type
bytes Uint8Array

any


serialize(state): Uint8Array;

Defined in: src/http/types.ts:206

Encode a stream-state object into the bytes sealed inside a state token.

Parameter Type
state any

Uint8Array