Abstracted server socket methods into checkpointSockets.rb, adding this commit to save a snapshot