Easy Code Share >

Auto Refresh HTML Data in Web Page by 4 Methods

Auto Refresh HTML Data in Web Page by 4 Methods

There are 4 methods to auto refresh Html data in display boards such as currency rate boards, so that the web page keeps changing periodically. The former two methods are about that browsers are polling the host site actively to get newest data. In the latter two methods, browsers just passively receive notifications of status … Read more

Easy Code Share >

WebSocket Push Message to a Specific Client in Html

WebSocket Push Message to a Specific Client in Html

Unlike HTTP servers, WebSocket servers can push a message to a specific client in Html and JavaScript. The feature is valuable for many applications such as web chatting. This article starts from WebSocket basics that introduces the way how clients and servers talk. Subsequently, the demo example uses NodeJS to build a server that manages … Read more