tags:

views:

46

answers:

1

I'm sort of new to web programming, but I wanted to write a HTML interface for a embedded device (coded in C) that I am developing. I've already implemented a stream server (a la beej's socket server example) and a java client, but I'm interested in implementing a HTML5 Socket interface instead.

I am having some trouble with the handshaking (in so much as the server accepts the connection but the web page does not), and was wondering if there was a specification available somewhere on line. The w3c spec seems to only describe the API (as far as I can tell) and not the details of the handshake. I'm not looking for a fully written example (I can do that!) just a reference for the handshaking that is better than the Wikipedia entry (or an explanation of why that entry should be enough to fully understand the spec).

If anyone could help me get it up and running I will happily package it all in a library and demo and put it up on google code.

Thanks... and please let me know if you need more info to help answer the quesiton!

A: 

It looks like this is the specifiction here. I'm not much of a web prgrammer myself either. However, based on my limited understanding, I'm curious about whether you really need to implement WebSockets. Could you just using a series of HTTP messages instead?

torak
Yeah, I'm looking to stream a rather large amount of data to the web interface (maybe even process it with web workers) and also to be able to control the embedded system through the online interface (with a click and drag style dashboard). I'm sure this can be done in flash, java applet, silver-light... but I was hoping for something plug-in free. XMLhttp request also does not seem quick enough. That document is a good start though, thankyou. I'll rep you up when I can.