Created socket chat in main method