How to configure a node in the mesh network as a relay node in light switch example ?

I need to configure 2 devices as relay nodes in order to relay messages from the client node to the server node  

How can i implement this in the light switch example ?