I need to establish a new socket connection with another server whenever a subscribe message comes to the adapter. That server will fire the events on the adapter. Then, the adapter will send notification to the client. If I establish socket connection while initializing the adapter, everything is working fine. Instead, If I establish the socket connection while adapter receives subscribe message, none of the events in adapter gets fired.

Can anyone help me?

Thanks in advance,