-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Description
https://github.com/statelyai/xstate/blob/main/packages/xstate-inspect/examples/server.ts
Using this example with ws: ^8.0.0
does not work and will silently fail.
The error appears to be these lines, as message is of type Buffer
not string
xstate/packages/xstate-inspect/src/server.ts
Lines 74 to 76 in d98d948
if (typeof message !== 'string') { | |
return; | |
} |
Expected Result
https://statecharts.io/inspect?server=localhost:8888 should correctly visualise the example
Actual Result
https://statecharts.io/inspect?server=localhost:8888 is stuck on "waiting for connection"
Additional context
Downgrading to the ws
version used the example fixes the issue.
Metadata
Metadata
Assignees
Labels
No labels