interface to connect to a pong server