start the ground work for WebSocket connection