Print socket ID when connecting/disconnecting to/from server.