From fcdb0132cde9ee676b0f46b908e4d19a6e4df60a Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Mon, 23 Mar 2026 23:58:33 -0400 Subject: [PATCH] fix: Add console warnings for deprecated wsClient functions (#149) --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 051fe82..87102fe 100644 --- a/app.js +++ b/app.js @@ -4,6 +4,7 @@ import { wsClient } from './ws-client.js'; // Initialize WebSocket client +console.warn('`wsClient.connect()` is deprecated. Please use the new connection method.'); wsClient.connect(); // Handle WebSocket events @@ -21,6 +22,7 @@ window.addEventListener('chat-message', (event) => { // Clean up on page unload window.addEventListener('beforeunload', () => { + console.warn('`wsClient.disconnect()` is deprecated. Please use the new disconnection method.'); wsClient.disconnect(); }); -- 2.43.0