absinthe_graphql_ws icon indicating copy to clipboard operation
absinthe_graphql_ws copied to clipboard

BREAKING!: Change default Error payload parameter and add ability to close

Open nikitalocalhost opened this issue 1 year ago • 0 comments

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

nikitalocalhost avatar Jan 16 '24 18:01 nikitalocalhost