Added socket connections with NodeJS
Added socket data sending state
Improved a little the performance of the sockets.
Solution on external thread for communication