zSoulweaver / kient

TypeScript-First Client Library for Kick.com
https://kient.pages.dev/
MIT License
21 stars 6 forks source link

Import module blocking operation #13

Open flameoflust69 opened 2 months ago

flameoflust69 commented 2 months ago

Hi, I tried to wrap Kient into a class and noticed ctrl+c wasn't working. Then I made a small check, and it was the import part blocking the operation. Consider this example

import { Events, Kient } from 'kient';

setTimeout(() => {
    console.log("hello world");
}, 10000);

If we trigger ctrl+c before the timeout is done, it doesn't work

If we call create it doesnt block the operation:

import { Events, Kient } from 'kient';

const client = await Kient.create()

setTimeout(() => {
    console.log("hello world");
}, 10000);
zSoulweaver commented 2 months ago

I don't seem to have this issue in my environment, and I can't see why just the import statement would affect anything here.

Would you be able to share your environment?

flameoflust69 commented 2 months ago

Maybe its windows problem, maybe something wrong with my env . Windows 23H2, node v18.19.0