class WsController < WebsocketRails::BaseController
protected
def find_client(client_jid)
connection_store[:clients].find do |client|
client.jid.strip.to_s == client_jid
end
end
def find_client_jid(client_jid)
client = find_client(client_jid)
client.jid.strip.to_s
end
end