cli
cli copied to clipboard
feat: update studio command to use hosted instance
Description
Currently, when CLI opens an asyncapi
file in Studio it uses the older version of Studio so it does not support spec v3. To solve this we need to update to the latest version of Studio, but the npm package is not being updated and so this PR is trying an alternative to use the hosted studio to start and edit the spec file.
Working
CLI is creating a server and hosting the spec file with cors enabled opening the studio with URL as a parameter, for example https://studio.asyncapi.com/?url=http://localhost:3210/fileread&url_save=http://localhost:3210/filesave
then open a websocket server for the studio to actually send back the changes made by the user to save locally to the spec file.