connect(connection, options){

        if(connection && typeof connection === 'object'){

            Logger.info('Received socket.io-client instance');

            return connection;

        } else if(typeof connection === 'string'){

            Logger.info('Received connection string');

            return this.io = SocketIO(connection, options);

        } else {

            throw new Error('Unsupported connection type');

        }

    }
registering SocketIO instance
@param connection
@param options