if  Rails.application.config.websocket_gateway_enable
  
  JamWebsockets::Server.new.run :port => Rails.application.config.websocket_gateway_port, 
                 :emwebsocket_debug => Rails.application.config.websocket_gateway_internal_debug,
                 :connect_time_stale => Rails.application.config.websocket_gateway_connect_time_stale,
                 :connect_time_expire => Rails.application.config.websocket_gateway_connect_time_expire
end
