phoenixframework/phoenix — pull request #353 by ankurp (2014-09-19 03:29:57+00:00)
Title: Adding heartbeat, on socket close code and close reason, and refactoring code to use WebSocket enums

Adding heartbeat to the Phoenix JS socket
Allowing for closing code and closing reason to be passed to the web socket connection as mentioned here http://tools.ietf.org/html/rfc6455#section-7.4.1
Refactoring to use enums instead of hard coded values for connection status