Adding example how to use socket in ruby