Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nikitalocalhost
Copy link

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