DUAL Node MCU code

I'm using node MCU to communicate directly and I can't find any example of it, that how will it work or how should i proceed with it.
Can anyone help me of it.
Right now, I'm capable of connecting these 2 node mcu using a secure connection of it's IP and making one a server and other a client

rookey:
Right now, I’m capable of connecting these 2 node mcu using a secure connection of it’s IP and making one a server and other a client

so print a value to client and read it on server