In the client side is possible close the socket with connection.close(), but its possible close it from the server side?
Since the socket exists on the client you would have to send a close command from the server to the client
Close GAE channel from server side Python