On this page

Function: stringifyMessage() (common)

stringifyMessage (graphql-ws/common): Stringifies a valid message ready to be sent through the socket.

stringifyMessage<T>(msg, replacer?): string

Defined in: src/common.ts:435

Stringifies a valid message ready to be sent through the socket.

Type Parameters

T extends MessageType

Parameters

msg

Message<T>

replacer?

JSONMessageReplacer

Returns

string