-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor polling error when running as middleware #56
Comments
Thank you, I will think about it. Which version of |
Here's how the folders are structured on the system.
|
You should add path on Added this information to docs. All this things made in this way to make prefixes work around all |
Thanks, I'll try that! |
I found the issue.
Line 143 in 56aef95
I am able to fix this by manually eding the This also appears to be an issue in cloudcmd/lib/client/konsole.js Line 53 in 97ada5a
Also, I'm not sure that the updates to the README.md regarding prefixing the path are correct. My
|
Disregard. I seem to have managed to fix it in the socket path. Thanks!!! |
App is running as express middleware with prefix
pun/dev/cloudcmd/
The default editor is attempting to poll socket.io on the server, but it is affixing the entire app prefix, which includes the
cloudcmd
app name. The socket.io app was deployed by the installer into the samenode_modules
directory as thecloudcmd
app, so the appropriate prefix would bepun/dev/socket.io
in this case.It seems that the editor needs to be informed to step back a directory from the prefix to connect to socket.io. Alternatively, cloudcmd maintains it's own node_modules folder, but
socket.io
isn't present in that path. Perhaps adding socket.io tocloudcmd/node_modules/socket.io
would also resolve this issue. I haven't had a chance to experiment with it yet, but I'm reporting it here in case you have any thoughts.The editor begins polling on open:
Poller gets 404 from invalid path:
The text was updated successfully, but these errors were encountered: