Skip to content

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