Giter Club home page Giter Club logo

Comments (12)

kanaka avatar kanaka commented on May 30, 2024

That's a great idea. Chrome extensions can make direct network connections so no proxy/websockify would be needed. I authorize you to fork noVNC and make it so ;-) I.e. I will probably get around to someday because it's definitely worthwhile, but if you want it any time soon then go for it.

from novnc.

 avatar commented on May 30, 2024

i wish i had time but heavily into other projects at the moment. Please someone else take the ball and run with it.

from novnc.

kanaka avatar kanaka commented on May 30, 2024

So I was searching around today and realized that Chrome extensions cannot create raw socket connections. Extensions can create WebSocket connections just like normal JavaScript. Even NaCl is restricted to WebSockets based connections.

There is some discussion about either raw socket ability of a built-in WebSocket to socket proxy to support SSH connections in Chrome OS: http://code.google.com/p/chromium-os/issues/detail?id=9668

Anyways, until that changes, there isn't much point in going down this road, unfortunately, so I'm closing the issue. If you hear any solid information that this may change please re-open the issue.

from novnc.

kanaka avatar kanaka commented on May 30, 2024

And we're back. Chrome just added a API for extensions that allows arbitrary socket connection using a WebSockets to socket proxy that has base64 encoded data. Sounds familiar somehow ;-)

http://src.chromium.org/viewvc/chrome?view=rev&revision=85757

from novnc.

kanaka avatar kanaka commented on May 30, 2024

The API for WebSockets to socket proxy is Chrome OS only. However, there is active work happening to allow direct socket connections from chrome extensions. It's not functional yet, but I expect it will be in the next few weeks.

Anyways, good news for being able to run noVNC in Chrome and being able to connect directly to standard VNC servers. Note that libvncserver now includes WebSocket support (actually bundles noVNC too) and this is possible for other VNC servers as well.

from novnc.

anisse avatar anisse commented on May 30, 2024

Just FYI, this isn't experimental anymore since Chrome 24:
http://developer.chrome.com/apps/socket.html
http://developer.chrome.com/apps/app_network.html

from novnc.

kanaka avatar kanaka commented on May 30, 2024

Here is an gist of an old patch for creating noVNC as a Chrome packaged app that uses Chrome raw sockets: https://gist.github.com/kanaka/7370898 It's out of date and needs some cleanup to apply to master, and but it worked (mostly) against an old version of the tree.

from novnc.

kanaka avatar kanaka commented on May 30, 2024

Here is the Firefox OS API docs for TCP Sockets: https://developer.mozilla.org/en-US/docs/WebAPI/TCP_Socket

from novnc.

kanaka avatar kanaka commented on May 30, 2024

One more bit of information. The W3C has an active proposal for bringing some standardization to the Raw socket API for installed web applications: http://www.w3.org/2012/sysapps/raw-sockets/

from novnc.

nekinie avatar nekinie commented on May 30, 2024

Hosting a HTTP server in a Chrome extension, inception? This brings so many possibility's for communicating with existing systems

from novnc.

Lekensteyn avatar Lekensteyn commented on May 30, 2024

@kanaka's W3C link died, this seems to be the latest version: https://www.w3.org/TR/tcp-udp-sockets/ (the group has closed down though according to https://www.w3.org/2012/sysapps/).

Firefox OS has also been retired, its API docs are also no longer relevant.

Chrome apps are also being removed.

With that in mind, I guess that this issue can no longer be solved and it is better to close it?

from novnc.

samhed avatar samhed commented on May 30, 2024

It sure looks like it, thanks for the research.

from novnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.