Websocket to Support Real Time Smart Home Applications

Abstract As we already know, the IoT (Internet of Thing) system has developed and is used in many fields, such as agriculture, security, industry etc. The IoT system requires real time monitoring and this is one of the problems that exists today. Transfering data from the sensor via the internet network to a monitoring device must be less than 300 ms. One process that can cause non-fulfillment of these requirements is a method for displaying the data on a monitor. There are several methods for delivering data from the sensor to a monitor. This paper has been compared between two methods, namely the polling method and the websocket method. The experiment was conducted to compare these two method. The result obtained that the websocket method was better in presenting real time data compared to the polling method. It can be shown in bandwidth usage and memory usage. In the experiment was found that the average of bandwidth usage is 478KB for polling method, and 91KB for web socket method in web based and the memory consumption of websocket less as much as 16% compared to polling method. In android smartphone the average bandwidth usage is 5.1 KB for web socket method and 15 KB for polling method and the memory consumption of websocket less as much as 22% compared to polling method.