@wahooks/channel 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -351,7 +351,7 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
351
351
|
function connectWebSocket() {
|
|
352
352
|
const wsProtocol = API_URL.startsWith("https") ? "wss" : "ws";
|
|
353
353
|
const wsHost = API_URL.replace(/^https?/, wsProtocol);
|
|
354
|
-
const wsUrl = `${wsHost}/ws?token=${encodeURIComponent(API_KEY)}`;
|
|
354
|
+
const wsUrl = `${wsHost}/api/ws?token=${encodeURIComponent(API_KEY)}`;
|
|
355
355
|
console.error("[wahooks-channel] Connecting to event stream...");
|
|
356
356
|
const ws = new WebSocket(wsUrl);
|
|
357
357
|
ws.on("open", () => {
|