Adds a socket server prototype based on the official documentation.