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

Add WebSocket support #3

Merged
merged 3 commits into from
Jul 7, 2016
Merged

Add WebSocket support #3

merged 3 commits into from
Jul 7, 2016

Conversation

GREsau
Copy link
Contributor

@GREsau GREsau commented Jul 6, 2016

This is the server change for my fix for mailhog/MailHog#58

This PR adds a new endpoint to APIv2, which can be used to listen for new messages. The APIv1 event stream is preserved, so new emails are broadcast through both the event stream and websockets.

GREsau added 3 commits April 22, 2016 14:16
New emails are broadcast through both the API v1 event stream and API v2
websocket.
Ideally it would be set to 0 as we expect no (non-control) messages from
the client, but a value of 0 is treated as infinity.
@ian-kent ian-kent merged commit a06fb42 into mailhog:master Jul 7, 2016
@ian-kent
Copy link
Member

ian-kent commented Jul 7, 2016

thanks @GREsau

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.

2 participants