new StopMessage(id) → {StopMessage}
Construct a GraphQL operation termination message.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Operation identifier |
Throws:
-
Throws a type error if the provided operation identifier is invalid or empty.
- Type
- TypeError
Returns:
- Type
- StopMessage