websocket-rails/websocket-rails — pull request #277 by ihernandez22 (2014-10-31 21:42:32+00:00)
Title: Isaac branch

Initial prototype changes to websocket-rails to enable accepting regular Websocket API as well as additional changes:

* Added an API Key timer, that allows the user 5 seconds to provide a message with a valid API Key (which is verified in the websocket server controller). After 5 seconds the timer is either disabled (if a valid API Key is provided) or the connection is closed (if there is no valid API Key).

* Extracting the IP address on connection now. Made a variable for websocket connections that holds the IP Address and a helper function to get the IP Address that can be called from the controller.

* Implemented send_message_to functionality and a helper function that can be called from the websocket server controller. It takes in the same parameters as send_to + the connection_id. It then continues and does the same thing as send_message except it redirects the message to the intended connection.