Add conditional web sockets