set up of websockets