It is a sample client example in Ruby. Here Sender sends an image to the Receiver via senz server.
cd into project directory 'ruby' Install required rubygems by following command
bundle install
- Setup and run senz-switch.
- Now setup and Run senz-web client both frontend and backend.
- Now click on your profile icon and then click on My signature to get your signature.
- 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.
- 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.
- Now cd into project directory 'ruby'
cd ruby
- Run Receiver Device
ruby receiver.rb
- Run Sender Device
ruby sender.rb