enable/disable websocket and comet by sinatra config  #2
RocketIO.emit("error") if websocket and comet not available  #2