igrigorik / em-websocket

EventMachine based WebSocket server
http://www.igvita.com/2009/12/22/ruby-websockets-tcp-for-the-browser/
MIT License
1.69k stars 187 forks source link

Add a 200 OK response at /healthcheck #145

Closed bkoski closed 7 years ago

bkoski commented 7 years ago

Google Cloud Platform recently added support for WebSockets behind their L7 HTTPS load balancers, but a em-websocket server cannot be deployed unless it has an endpoint that responds with 200 OK.

This PR adds a /healtcheck response in a similar pattern to the Flash crossdomain response. This endpoint is useful for various systems that prefer HTTP rather than TCP healthcheck probes.

igrigorik commented 7 years ago

👍 thanks for this, looks good!