-
Notifications
You must be signed in to change notification settings - Fork 922
Problem WebSocket #41
Comments
Could you paste the full code of your plugin (first to last line)? Thanks.
|
|
The plugin looks good, although I don't fully understand why you set an outside IP address in your plugin.
How do you know the plugin isn't loaded? Could you test by setting a console.log in your load() function? If you check the network tab of the browser's console. Do you see the websocket trying to connect? |
I have c9 on a container and a WebSocket server in a different docker 2015-03-21 19:53 GMT+01:00 Ruben Daniels notifications@github.com:
|
Nope. In the network tab my websocket is absent... |
I've checked package.json file. Should I add something to it?
I tried to use other "common node.js API" such as path or querystring (that have slightly different sintax) that I've seen in the documentation and they work perfectly. The problem is with "ws" |
Worked around the problem using different way, passing data through fs, although the original problem I have quoted persists. |
I wrote a plugin (and put it in ~/.c9/plugin/plugin-name) with following code:
On localhost I have a server listening on port 8090
When I try to load the IDE at
http://localhost:8186/ide.html?sdk=1?debug=2
It loads only IDE but not the plugin and my server doesn't receive any data.
If I try the same code in a client loaded in a different container it works perfectly.
Thanks
The text was updated successfully, but these errors were encountered: