afrad / angular2-websocket

Websocket wrapper for angular2 based on angular-websocket
Apache License 2.0
210 stars 84 forks source link

Support for ping/pong to check if the connection is alive #88

Open Ivan-Perez opened 7 years ago

Ivan-Perez commented 7 years ago

Hi!

It would be awesome if you could add support to send a ping over a web-socket (and its counterpart, the event pong to check if a response to a ping has been received). This could easily allow to check if a web-socket connection is alive without being necessary to implement an echo message on the server side.

Thanks in advance.