prepare websockets