filwiesner / TmiK

Twitch messaging in Kotlin - Simple DSL for interacting with Twitch chat
MIT License
8 stars 1 forks source link

Does not run in browser #12

Open Martmists-GH opened 3 years ago

Martmists-GH commented 3 years ago
browser.js?b00d:4 Uncaught Error: ws does not work in the browser. Browser clients must use the native WebSocket object
    at new module.exports (webpack-internal:///../../node_modules/ws/browser.js:4)
    at IRC.connect (webpack-internal:///./kotlin-dce-dev/TmiK.js:95329)
    at TmiClient.connect (webpack-internal:///./kotlin-dce-dev/TmiK.js:698)
    at eval (webpack-internal:///./kotlin-dce-dev/overlay.js:804)
    at eval (webpack-internal:///./kotlin-dce-dev/kotlin-wrappers-kotlin-react-js-legacy.js:804)
    at commitHookEffectListMount (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:19731)
    at commitPassiveHookEffects (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:19769)
    at HTMLUnknownElement.callCallback (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:188)
    at Object.invokeGuardedCallbackDev (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:237)
    at invokeGuardedCallback (webpack-internal:///../../node_modules/react-dom/cjs/react-dom.development.js:292)