Overview
Features
Download
Documentation
Community
Add-Ons & Services

Websockets

Discussion of ideas for features and new projects based on POCO.

Websockets

Postby freedompeace » 13 Jun 2011, 09:33

Although Websockets (http://dev.w3.org/html5/websockets/) is currently in draft, could Websockets be implemented and added to POCO's HTTP Server?

This is very important for me to provide near real-time updates to web applications without waiting for long-polls. In fact, this is the single feature that I would be willing to purchase POCO for.

Thanks!
freedompeace
freedompeace
 
Posts: 1
Joined: 13 Jun 2011, 09:25

Re: Websockets

Postby SalvorHardin » 06 Jan 2012, 00:45

The WebSocket Protocol was finalized in Dec 2011.
RFC 6455 - http://tools.ietf.org/html/rfc6455

I'd love to see POCO support this.
SalvorHardin
 
Posts: 29
Joined: 24 Aug 2010, 14:47

Re: Websockets

Postby guenter » 06 Jan 2012, 20:59

I'm currently working on it. Should be in 1.4.3 SVN some time this weekend.
guenter
 
Posts: 1092
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Websockets

Postby guenter » 07 Jan 2012, 13:41

Okay, a first version of the WebSocket implementation is now in 1.4.3 SVN Net library. Supports server- and client-side WebSocket connections. For server-side usage, see WebSocketServer sample.
Has been tested with Chrome 16 only, as this is the only released browser supporting RFC 6455 at the moment.
guenter
 
Posts: 1092
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Websockets

Postby dahang » 26 Jan 2012, 19:21

I check out the code . and build the websocket server and samples . I want to know how to set up connect by ws://localhost:9980/ ? does server know the ws://?
dahang
 
Posts: 1
Joined: 26 Jan 2012, 19:17

Re: Websockets

Postby Royce » 23 Feb 2012, 18:23

Has anyone had any experience using secure websockets? I've got a little webserver app that tries to accept connections as websockets, but if the WebSocket constructor throws an exception, it switches over and sends a simple "Hello World" html page. Unsecured, the app works great. Secured, I seem to have trouble on the websocket side at least using FF 11 beta and Chrome 17. The Websocket can't receive anything, it just times out, but it can transmit OK and the browser picks up the frames accurately. If I instead make a regular HTTPS request, I get my HTML Hello World just fine.
Royce
 
Posts: 16
Joined: 23 Feb 2012, 18:13


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest

cron