incognitolm commited on
Commit ·
7c66ff8
1
Parent(s): 9005248
Update chatStream.js
Browse files- server/chatStream.js +1 -1
server/chatStream.js
CHANGED
|
@@ -54,7 +54,7 @@ function makeClient(accessToken, clientId) {
|
|
| 54 |
});
|
| 55 |
}
|
| 56 |
|
| 57 |
-
export async function
|
| 58 |
const wsURL =
|
| 59 |
(process.env.LIGHTNING_BASE.startsWith("https")
|
| 60 |
? process.env.LIGHTNING_BASE.replace("https", "wss")
|
|
|
|
| 54 |
});
|
| 55 |
}
|
| 56 |
|
| 57 |
+
export async function websocketChatStream(body, headers, onToken, abortSignal) {
|
| 58 |
const wsURL =
|
| 59 |
(process.env.LIGHTNING_BASE.startsWith("https")
|
| 60 |
? process.env.LIGHTNING_BASE.replace("https", "wss")
|