connect editor to websockets