class RosterController < WebsocketRails::BaseController
    #include Jabber

    def initialize_session
        #controller_store[:friends] = {}
    end

    def connect

    end

    ##
    # Vrat vsetkych priatelov v rosteri
    def get_roster
        #controller_store[:friends]
    end

    ##
    # Pridaj noveho priatela do zoznamu
    def add_friend(data)

    end

    private

    def login
        Rails.logger.info session[:token].inspect
        #user_id = Token.find_by(token: session[:token]).user_id
        #Rails.logger.info "user ID" + user_id.inspect
    end
end