WebSocket

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

WebSocket

Postby alexchang » Sun Apr 26, 2015 11:44 am

Dear Espressif,

After few days study, we knows websocket and node.js socket.io better. Before we just use nodejs socket.io directly, right now we know websocket data frame structure.
We think the support on websocket is quite important for esp8266, especially official support from espressif.

Please take few time study this slides:
https://media.blackhat.com/bh-us-12/Bri ... Slides.pdf

We are trying to adapt handshake and receive and send function from other implements like :
https://github.com/m8rge/cwebsocket
https://github.com/dhbaird/easywsclient
https://github.com/square/SocketRocket

israellot
Posts: 14
Joined: Fri Mar 27, 2015 1:11 am

Re: WebSocket

Postby israellot » Sun Apr 26, 2015 11:06 pm

I have an example of a web server running websockets on ESP here
http://www.esp8266.com/viewtopic.php?f= ... 8c3bf559a2

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: WebSocket

Postby alexchang » Mon Apr 27, 2015 12:14 am

This is cool! I think esp8266 act as a client only, I will study your code, should learn much from your project!

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: WebSocket

Postby alexchang » Wed Apr 29, 2015 8:17 pm

After some error and try, I successfully create websocket packet to server, right now is okay, thanks!

aerouta
Posts: 2
Joined: Fri Jul 31, 2015 11:45 pm

Re: WebSocket

Postby aerouta » Fri Jul 31, 2015 11:47 pm

Can you please post your working code. I am working on the same problem.

Thanks!!

aerouta
Posts: 2
Joined: Fri Jul 31, 2015 11:45 pm

Re: WebSocket

Postby aerouta » Fri Jul 31, 2015 11:49 pm

alexchang wrote:After some error and try, I successfully create websocket packet to server, right now is okay, thanks!



Hello, can you post your working code? I am working on the same problem.

Thanks

Who is online

Users browsing this forum: No registered users and 71 guests