Socket connection

Hi, i am trying to build a loggers (300), i need it to be able to use socket so it is in real time. Also i need to send config to it in real time. What is the best pratcis to do so? I am looking at ArduinoPusherClient to use as communication.

The problem i am worried of if some one get the token or something of the code.

Unless the connection is secure, like SSL, you have a potential security problem if the packets are sent over the internet. Without encrypting the packet the key is sent plain text. There are encryption methods that can encrypt just the "password", but the best are a dual encryption method. Google CHAP encryption.