Update websocket.functions.php