-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move creating clients from components
- Loading branch information
1 parent
24e29a5
commit 1fc161b
Showing
4 changed files
with
258 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Client } from "aidbox-sdk"; | ||
import { io } from "socket.io-client"; | ||
|
||
import config from "./config.json"; | ||
|
||
export const aidboxClient = new Client(config.aidbox_url, { | ||
username: config.aidbox_client, | ||
password: config.aidbox_secret, | ||
}); | ||
|
||
export const socketIo = io(config.app_url, { | ||
auth: { | ||
token: "json-web-token", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.