Correcte websocketresource to start correctly a new factory. (So it works also on wamp server protocol)