typescript
class JsonSerializer extends SerializerDefault JSON serializer with newline terminator
Properties
terminator
string
Terminator sequence used to delimit messages in the stream. Must be the same on both client and server.
Methods
deserialize(data: string | Uint8Array<ArrayBufferLike>): TDeserialize string or Uint8Array back to data
Parameters
data:string | Uint8Array<ArrayBufferLike>
Returns
Tserialize(data: T): stringSerialize data to string or Uint8Array
Parameters
data:T
Returns
string