statelyai / inspect

Inspect state transitions and actor communication
https://stately.ai/docs/inspector
MIT License
43 stars 5 forks source link

Integrating inspector in nodejs #6

Open kuk941025 opened 7 months ago

kuk941025 commented 7 months ago

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!

davidkpiano commented 7 months ago

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

nstadigs commented 7 months ago

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

nstadigs commented 7 months ago

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.

solispauwels commented 1 month ago

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?