connect websockets to correct url