app/controllers/roster_controller.rb
ff94bdbf
 class RosterController < WebsocketRails::BaseController
23f7b7b2
     #include Jabber
ff94bdbf
 
     def initialize_session
23f7b7b2
         #controller_store[:friends] = {}
ff94bdbf
     end
 
70fc03c1
     def connect
333715b4
 
70fc03c1
     end
 
ff94bdbf
     ##
     # Vrat vsetkych priatelov v rosteri
70fc03c1
     def get_roster
23f7b7b2
         #controller_store[:friends]
ff94bdbf
     end
 
     ##
     # Pridaj noveho priatela do zoznamu
     def add_friend(data)
 
     end
70fc03c1
 
     private
 
23f7b7b2
     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
ff94bdbf
 end