We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a5c60 commit ae3b733Copy full SHA for ae3b733
1 file changed
src/index.ts
@@ -5,7 +5,7 @@ import { loadToken } from './token.js';
5
import { SkyChatOption, SkyChatOptions } from './types.js';
6
7
export function getEndPointUrl(protocol: string, host: string): string {
8
- return `${protocol}://${host}/ws`;
+ return `${protocol}://${host}/api/ws`;
9
}
10
11
export async function main() {
@@ -16,6 +16,7 @@ export async function main() {
16
const client = new SkyChatClient(url, {
17
autoMessageAck: true,
18
});
19
+ console.log(`Connecting to SkyChat at ${url}...`);
20
21
await autoConnect(client, options);
22
0 commit comments