Skip to content

Commit ae3b733

Browse files
committed
Update WS API Url
1 parent f4a5c60 commit ae3b733

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { loadToken } from './token.js';
55
import { SkyChatOption, SkyChatOptions } from './types.js';
66

77
export function getEndPointUrl(protocol: string, host: string): string {
8-
return `${protocol}://${host}/ws`;
8+
return `${protocol}://${host}/api/ws`;
99
}
1010

1111
export async function main() {
@@ -16,6 +16,7 @@ export async function main() {
1616
const client = new SkyChatClient(url, {
1717
autoMessageAck: true,
1818
});
19+
console.log(`Connecting to SkyChat at ${url}...`);
1920

2021
await autoConnect(client, options);
2122

0 commit comments

Comments
 (0)