After the log function is triggered, the console shows "WebSocket is already in CLOSING or CLOSED state."