Update View Before Enter In

Hello everyone.

I have a problem and I don’t know how resolve…

I have a app with 3 tabs… In principal tab I have a connection with socketio to a server and receive some information and this works…
But in the app I need to have two sockets open to server (differents ports), and one of them is to listen a chat.
In the principal tab also connect the socket of chat… But I want that If i receive some message, update de tab of chat automatically…

Is possible to do ?

Thank you for your help.