integration of front code and sockets implementation