♻️ Remove non needed arguments and obtain values
using helpers
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { getApiClient, getAuthProvider } from "./helpers/twitch";
|
||||
|
||||
import { connect } from "./chatClient";
|
||||
import { listen } from "./webServer";
|
||||
import { registerUserListener } from "./pubSubClient";
|
||||
@@ -7,12 +5,10 @@ import { registerUserListener } from "./pubSubClient";
|
||||
const channel = "alexbcberio";
|
||||
|
||||
export async function bootstrap() {
|
||||
|
||||
const apiClient = await getApiClient();
|
||||
await registerUserListener(apiClient, channel);
|
||||
|
||||
const authProvider = await getAuthProvider();
|
||||
await connect(authProvider, [channel]);
|
||||
await Promise.all([
|
||||
registerUserListener(channel),
|
||||
connect([channel]),
|
||||
]);
|
||||
|
||||
listen();
|
||||
}
|
Reference in New Issue
Block a user