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

Investigate validation/coercion of SSE / Websockets #5

Open
oliyh opened this issue Jan 30, 2016 · 1 comment
Open

Investigate validation/coercion of SSE / Websockets #5

oliyh opened this issue Jan 30, 2016 · 1 comment

Comments

@oliyh
Copy link
Owner

oliyh commented Jan 30, 2016

Could be an interesting experiment

@oliyh
Copy link
Owner Author

oliyh commented Mar 29, 2016

Validation errors need to return something sensible. Detect by putting the exception on the channel with normal ex-data.

Regarding serialisation, Pedestal currently does pr-str on events so interestingly enough, edn "just works", but JSON or anything else would require normal serialisation. Response type probably needs to be text/event-stream to avoid breaking other things but could try something like text/event-stream+json along the lines of transit. Content negotiation would need to be aware of this.

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

No branches or pull requests

1 participant