Command response openigtlink

Hello everyone,

My question is, how can I print a received a command message in the igtlinkremote or python interactor?

I am sending a command from slicer using:

    cn=slicer.mrmlScene.GetNodeByID("vtkMRMLIGTLConnectorNode1")
mc=slicer.vtkSlicerOpenIGTLinkCommand()
mc.SetCommandName("SomeCommand")
mc.SetCommandContent("{}")
slicer.modules.openigtlinkremote.logic().SendCommand(mc,cn.GetID())

The server after execution of the command sends reply back to the client using the OpenIGTLink. But I don’t see anything in the Openigtlink Remote responses. I have also tried adding an observer like:

   mc.AddObserver(cn.CommandResponseReceivedEvent,print) 

However, it just prints 1 and nothing on sending the command. Could anyone please help me regarding how to print the replies?

Thanks,
Best Regards,
Srijeet