Yii2 websocket client

Hi all,

Can someone elaborate on how to implement client web socket in yii2?

My need is to have my yii2 system to make a connection to nodejs websocket server to get some data and update some part of the yii2 page. For example, chatting system or dynamic automatic system.