class RosterController < WebsocketRails::BaseController #include Jabber def initialize_session #controller_store[:friends] = {} end def connect #hack_sessions() #Rails.logger.info "ahojte" Rails.logger.info "login now" login() trigger_success msg: "asdds" #login() #get_roster() 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 def hack_sessions #session[:a] = true #Rails.logger.info session.inspect #Rails.logger.info request.session.inspect #Rails.logger.info request.cookies["rack.session"] #session.delete :a #Rails.logger.info session.inspect end end