On this page

Type Alias: JSONMessageReplacer() (common)

JSONMessageReplacer (graphql-ws/common): Function that allows customization of the produced JSON string

JSONMessageReplacer: (this, key, value) => any

Defined in: src/common.ts:428

Function that allows customization of the produced JSON string for the elements of an outgoing Message object.

Read more about using it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#the_replacer_parameter

Parameters

this

any

key

string

value

any

Returns

any