I'm a little new to Ruby - please be gentle!
I have installed Ruby 1.9.3 on my Windows PC along with the DevKit. I carefully followed the instructions for setting up the devkit.
I then installed the ruby gem for simple-websocket-client:
C:\DevKit>gem install websocket-client-simple
Fetching: websocket-1.2.2.gem (100%)
Fetching: event_emitter-0.2.5.gem (100%)
Fetching: websocket-client-simple-0.2.4.gem (100%)
Successfully installed websocket-1.2.2
Successfully installed event_emitter-0.2.5
Successfully installed websocket-client-simple-0.2.4
3 gems installed
Installing ri documentation for websocket-1.2.2...
Installing ri documentation for event_emitter-0.2.5...
Installing ri documentation for websocket-client-simple-0.2.4...
Installing RDoc documentation for websocket-1.2.2...
Installing RDoc documentation for event_emitter-0.2.5...
Installing RDoc documentation for websocket-client-simple-0.2.4...
C:\DevKit>```
So far so good.
Now I try to use the simple demo script shown on the github page for the gem:
require 'rubygems'
require 'websocket-client-simple'
ws = Websocket::Client::Simple.connect 'wss://WN72REA4.companyname.com:8181/channel'
And I get:-
C:/Users/me/Documents/YY5/rubyscripts/websocket-demo.rb:4:in `<main>': uninitialized constant Websocket (NameError)
Can someone tell me where I am going wrong please? Googling around I see a few hits for this kind of issue, but they mostly read as though they were fixed by trial and error. Would appreciate any advice on where I am going wrong.
Thanks!