Using obs Websocket/node.js modules in overwolf

I want to use obs websocket in my app, for that i wanted to use obs-websocket-js, which is a node.js module but because of that i dont think it will work. is there already an api for overwolf or do i have to send normal web requests, i would try import OBSWebSocket from '../npm_modules/obs-websocket-js/dist/obs-websocket-js' but it only says that relative imports need to start either with ./ , / or …/ . Uncaught TypeError: Failed to resolve module specifier “obs-websocket-js”. Relative references must start with either “/”, “./”, or “…/”. to be exact. this happens in background.html:1, even if i have it in a seperate file

1 Like

Hi, thanks for your question. I will reply later today. Thanks.

did you try import OBSWebSocket from 'obs-websocket-js'? or import * as OBSWebSocket from 'obs-websocket-js'?

Hey,

I use obs-websocket-js in Shots Fired, so it is possible.
Just wanted to confirm it works how Omer posted.

1 Like