Add conditional webSockets