On this page

Function: validateMessage() (common)

validateMessage (graphql-ws/common): Validates the message against the GraphQL over WebSocket Protocol.

validateMessage(val): Message

Defined in: src/common.ts:206

Validates the message against the GraphQL over WebSocket Protocol.

Invalid messages will throw descriptive errors.

Parameters

val

unknown

Returns

Message