separate the socket connection into PadConnection, in anticipation of supporting reconnection
don't try too much just now
a bit more checking for connection status (possible useful for a dashboard)