All the communication that has been presented until now was based on a request response method, in which one entity was sending a request and an other entity was sending back a response. But there are situations when you need real-time communications between the ESP8266 module and a server, not just transactions. To achieve real-time communication, we will use WebSockets to stream the acceleration values from an acceleration sensor to a server to display them in a real-time graphic, and also to store them in a time-series database.