Create chat.js

This is the nodejs file that creates the tcp server