Setting up websockets