Spacebrew/ciSpaceBrew — pull request #1 by Hebali (2014-11-22 23:36:10+00:00)
Title: Fixes issues related to auto-reconnect functionality.

There were a few issues related to auto-reconnect functionality:

- The method: Connection::setReconnectRate( int reconnectMillis ) expects a milliseconds value but Connection::update() internally expects seconds.
- Within Connection::update(), reconnection is attempted through the call to connect( host, config ). This version of the connect() method appends the "ws://" prefix and port number suffix to an already formatted host string.
- Once the two above issues are resolved, reconnection behavior through the WebSocketClient object still does not work as expected. I found that the simplest way to fix the problem was to dump the WebSocketClient and reinitialize it. In my testing, this allows proper reconnection to the spacebrew server.