Time server template.
Add socket.end() function.