absinthe_graphql_ws
absinthe_graphql_ws copied to clipboard
BREAKING!: Change default Error payload parameter and add ability to close
With current implementation there are no ability to provide message payload and no ability to close a socket.
With this default is to use payload from {:error, payload, socket} as a Message.Error payload and automatically generate Message.Error UUID. When provided with {:error, {id, payload}, socket}, Message.Error would be constructed with id and payload.
When returning {:close, {status, message}, socket, connection is closed.
Fixes https://github.com/geometerio/absinthe_graphql_ws/issues/23