Renaming variable socket->server

Clarify the relative relationship for client-side