websocket

Is it possible to connect to SSH using JavaScript?

I know there is an implementation of VNC using WebSockets (http://novnc.com) but that still requires a server. I am looking to create a simple client-side JavaScript only (no Flash) connection to a port running SSH. I am guessing WebSockets is the only way to go since it does TCP. Any example code? Any other way? ...

WebSockets... Are they unsafe?

I was working on HTML5 and I came across this site http://www.rumpetroll.com. It is a very very cool site, but then I noticed the relative ease with which people could crash the site because they could overload the sending message scheme... Also I saw a butt load of javascript injection hacks being done on it, by various users and that g...

Standalone C++ websocket server library

Hi, I'd like to create a websocket server within one of my C++ programs. Do any standalone C++ libraries exist for creating websockets or is the only option to get the WebKit or V8 sources and extract their implementation? ...

How to debug Websockets?

I want to monitor the websocket traffic (like to see what version of the protocol the client/server is using) for debugging purposes. How would I go about doing this? Wireshark seems too low level for such a task. Suggestions? ...

Websockets Issue, Perhaps Same Origin Policy?

I have a site hosted at localhost:8000. Now, I have a server listening for websocket connections at localhost:8001. I would like my website to connect to this server through the websocket api like var conn = new WebSocket('ws://localhost:8001'); But I get some errors in Chromium 6.0.472.62 upon calling conn.send('something'); Tha...

Android webkit.WebView and HTML5

Hi, is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers Prior there was lack of those features (http://www.mail-archive.com/[email protected]/msg60143.html), but in Android 2.1, first ...

iPhone4, UIWebView and HTML5

Hi, is there any list which HTML5 features the UIWebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers In pre-iOS4 there was not an offline manifest support, which was necessary to program in objective-C, which - when done broke the localStorage s...

100% websockets instead of HTTP in the future?

Today I thought about why the Web traditionally is stateless - opening a connection, then close it as fast as possible. I realized that this was the HTTP. And soon we will have fully implemented web-sockets to use for live things. So I thought, could websockets replace http in the future so that every connection made will be opened ti...

How can I tell if Heroku is sending gzipped responses?

I'm making an iPhone application that requests JSON from Heroku. Am I getting a gzipped response? And, does the iPhone automatically unzip gzipped responses, or do you have to program that in? I'm using NSURLConnection asynchronously (with the delegate protocol) as described in the Xcode docs. When I do: curl -I http://acani.heroku.c...

Storing binary data in UTF-8 string

I want to use a WebSocket to transfer binary data, but you can only use WebSockets to transfer UTF-8 strings. Encoding it using base64 is one option, but my understanding is that base64 is most desirable when your text might be converted from one format to another. In this case, I know the data will always be UTF-8, so is there a better...

Will Android support WebSockets in an upcoming version?

If so, does anybody know which version it's scheduled to be supported in (in built-in Chrome Lite browser)? Also, is it currently supported on any of the alternative browsers for Android like FireFox or Opera Mini? ...

Best Java framework for server side WebSockets

I want to create simple server having low load. The goal is to give a few javascript clients access to some functionality implemented in Java through WebSockets. I seek for best library to use for that - it should be simple, robust etc. Now I consider 3 alternatives - jWebSocket - jetty - netty What is the best? Or may be something else...

Why doesn’t Web Sockets use SOAP?

First off, I intend no hostility nor neglegence, just want to know people's thoughts. I am looking into bi-directional communication between client and server; client being a web application. At this point I have a few options: MS-proprietary duplex binding, from what I hear unreliable and unnatural: comet, and web sockets (for suppor...

Base64 decode from Buffer to Buffer efficiently in node (node.js)

I currently have a python and C version of wsproxy (WebSockets to plain TCP socket proxy) in noVNC. I would like to create a version of wsproxy using node.js. A key factor (and the reason I'm not just using existing node WebSocket code) is that until the WebSocket standard has binary encoding, all traffic between wsproxy and the browser/...

How to debug Safari silently failing to connect to a secure WebSocket

When doing new WebSocket('ws://server/'); Safari connects fine, but when using new WebSocket('wss://server/'); it completely fails (returns a null object). Worse, it fails silently - no errors in traceback (a custom Eventlet web server) or in the error console within Safari. Chrome works fine with both the secure and non-secure host. H...

Websocket session between two users

Greets to all! I want to create private messaging based on websockets. It is possible to implement session between two users using websockets? ...

Web sockets make ajax/CORS obsolete?

Will web sockets when used in all web browsers make ajax obsolete? Cause if I could use web sockets to fetch data and update data in realtime, why would I need ajax? Even if I use ajax to just fetch data once when the application started I still might want to see if this data has changed after a while. And will web sockets be possible ...