通过node server端接收到tcp数据以后
想要在web页面显示出来
如果把tcp的数据推送给前端(使用socket.io)?
PHPz2017-04-17 13:43:08
If you want backend push, then WebSocket is a good way. In node, ws or socket.io is recommended. In addition, you can also consider foreground timing to pull data.
ringa_lee2017-04-17 13:43:08
After the front-end and back-end have established sockets, they can communicate directly, and the data obtained is directly rendered on the front-end