Connection between Jupyter Lab extension and Kernel extension

Hi all,

I have built a jupyterlab extension using cookie-cutter template. I want to send json from lab extension to Kernel Extension( I have created a Kernel extension) . I searched over internet to find that “comms” can be used send msg to kernel. Can someone help me how to send message from Jupyter Lab frontend to kernel extension ( kernel ) ?

I found that comms can be established only in jupyter notebook. Kindly help !

Thanks in advance!