Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.11 KB

Sample Client For Senz : Transfer Image (Ruby)

It is a sample client example in Ruby. Here Sender sends an image to the Receiver via senz server.

Installing Gems

cd into project directory 'ruby' Install required rubygems by following command

bundle install

Pre running Steps

  1. Setup and run senz-switch.
  2. Now setup and Run senz-web client both frontend and backend.
  3. Now click on your profile icon and then click on My signature to get your signature.
  4. In order to communicate between 2 devices you need to add both the devices in the same project. So if not added then add 2 devices in any of your projects.
  5. Now in reciever.rb and sender.rb file replace the signature and pubkey with your signature and pubkey respectively. Also make sure that sender and reciever pubkeys are different.

Instructions

  1. Now cd into project directory 'ruby'
cd ruby
  1. Run Receiver Device
ruby receiver.rb
  1. Run Sender Device
ruby sender.rb