Websocket implemenation @ Arduino or @ NodeJS + Firmata

There seems to be something wrong with my latest comments => repost them to be certain.

The last couple of days I looked into websockets and Arduino.

I experimented with NodeJS + socket.io and implemented a small chat application, fun!

Now I want to move on to the Arduino. Goal is to realize a real-time connection between my Uno and a browser, for giving instructions to the Arduino and getting status information from the Arduino. I learned from the Intenet that there are two strategies to implement this:

1.     Implement a websocket client and server on the Arduino itself

2.     implement a websocket client and server @ NodeJS and make a serial connection between NodeJS and the Arduino with Firmata.

First way seems most direct to me. What is the benefit of the second manner? Why should I consider doing it this way?

If I go for the first approach, what's the best library to use? So far I found these three libraries:

·         https://github.com/m8rge/cwebsocket

·         https://github.com/brandenhall/Arduino-Websocket

·         https://github.com/ejeklint/ArduinoWebsocketServer => client only

 

But I haven't found any reviews or examples, other than included in the library. What would you recommend me?

 

I worked on the Branden Hall library till now, but haven’t been able to keep the examples running. Do you know examples of working examples, preferably with WiFi-shield?

How are you going to connect

How are you going to connect your Arduino to the network in the first place?

In his last sentence he
In his last sentence he mentions a WiFi shield.

It shouldn’t be too difficult to create a very small server given the library that should come with a WiFi shield, hopefully. This server would probably be very limited given the RAM restraints in the Arduino.