fix: send empty init message on WS open to trigger start.bas and load suggestions
This commit is contained in:
parent
d27e6d6b76
commit
ec83d2c149
1 changed files with 10 additions and 0 deletions
|
|
@ -951,6 +951,16 @@
|
|||
console.log("WebSocket connected to:", url);
|
||||
disconnectNotified = false;
|
||||
updateConnectionStatus("connected");
|
||||
// Send empty message to trigger start.bas and load suggestions
|
||||
ws.send(JSON.stringify({
|
||||
bot_id: currentBotId,
|
||||
user_id: currentUserId,
|
||||
session_id: currentSessionId,
|
||||
channel: "web",
|
||||
content: "",
|
||||
message_type: MessageType.USER,
|
||||
timestamp: new Date().toISOString(),
|
||||
}));
|
||||
};
|
||||
|
||||
ws.onmessage = function (event) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue