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 ping to WebSocket example feed.pl #8

Open
preaction opened this issue May 14, 2017 · 1 comment
Open

Add ping to WebSocket example feed.pl #8

preaction opened this issue May 14, 2017 · 1 comment

Comments

@preaction
Copy link
Member

@jberger says if we add a regular ping, we can be better-notified when connections go down for strange reasons. Mojolicious will automatically respond to pings in Mojo::UserAgent, so we just need to send them. This should make the WebSocket APIs more reliable.

@jberger
Copy link
Member

jberger commented Jun 8, 2017

Sending a ping frame is the frame example shown for the Controller's send method. Note for clarity that a frame is sent by passing an arrayref to send.

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

No branches or pull requests

2 participants