tcp server coded and working, web sockets can connect and receive data from server