calling sockets on front end turn generation