Skip to content

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

Open
nikitalocalhost wants to merge 6 commits into
absinthe-graphql:mainfrom
nikitalocalhost:main
Open

BREAKING!: Change default Error payload parameter and add ability to close#25
nikitalocalhost wants to merge 6 commits into
absinthe-graphql:mainfrom
nikitalocalhost:main

Conversation

@nikitalocalhost

Copy link
Copy Markdown

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 #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an ability to return payload on handle_init error

1 participant