Need to write Gatling for TCP socket connection as server and as client

My application uses Java and Spring Integration for Tcp connection. There are two types of features, In first I need to connect application as client and in another need to connect as server. Both are having two way communication using gateway using spring Integration.

I need to write gatling script for performance testing, but I am new to gatling.

It would be great if there is sample program which is similar to my requirement, that I can refer as reference. Also I was not able to find any option for TCP in recorder.