inspect icon indicating copy to clipboard operation
inspect copied to clipboard

Integrating inspector in nodejs

Open jaykay-p opened this issue 1 year ago • 4 comments

Hi,

Thanks for the inspector. I am looking forward to use it in both frontend and backend parts of my project.

I'm working on a nestjs application, but I cannot find any guides on how to integrate in nodejs. Would really appreciate some guidance on setting up the inspector in nodejs. Thanks!

jaykay-p avatar Jan 20 '24 07:01 jaykay-p

We are working on a websocket inspector, which you can follow along here: #12

davidkpiano avatar Jan 27 '24 04:01 davidkpiano

Meanwhile you can host a web page that proxies inspection events from a websocket connection to the browser inspector

nstadigs avatar Jan 28 '24 19:01 nstadigs

After looking at the PR: Will I be able to inspect my machines with the websocket inspector without creating publicly accessible URLs? Otherwise I guess I'll just go with the approach I mentioned above to kinda mimic the behavior of the deprecated visualizer.

nstadigs avatar Jan 28 '24 19:01 nstadigs

Following the documentation on https://stately.ai/docs/inspector.

I am trying to get createWebSocketInspector to work in a Node.js environment (NestJS), but I haven't been able to achieve this. When I create the WebSocket myself, it connects correctly and sends data, but I cannot inspect anything.

Additionally, it seems the autostart parameter is not functioning, so I need to start it manually.

The website lacks sufficient documentation. You mention a URL https://stately.ai/inspector, but this URL does nothing (it doesn't attempt to connect to the WebSocket).

Can you help me?

solispauwels avatar Jul 26 '24 08:07 solispauwels