Sha256: 326fab3a821bc090eadb044c9d4330c165713cbb56c9162ad192d6774239a9af
Contents?: true
Size: 303 Bytes
Versions: 1
Compression:
Stored size: 303 Bytes
Contents
require 'em-websocket-client' require 'json' require 'ostruct' require 'myo/version' require 'myo/client' module Myo MYO_API_VERSION = 3 SOCKET_URL = "ws://127.0.0.1:10138/myo/#{MYO_API_VERSION}" def self.connect client = Client.new(SOCKET_URL) yield(client) client.start end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myo-ruby-0.1.0 | lib/myo.rb |