Sha256: 5eaadb1c77910cc246c2711455342c335f4e0c3805359582f4aa297ca305dac0

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

require 'em-websocket-client'
require 'ostruct'
require 'json'

require 'myo/version'
require 'myo/band'

module Myo
  API_VERSION = 3
  SOCKET      = "ws://127.0.0.1:10138/myo/#{API_VERSION}"

  def self.connect
    band = Band.new(SOCKET)
    yield(band)
    band.run
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
myo-ruby-wrapper-0.0.2 lib/myo.rb
myo-ruby-wrapper-0.0.1 lib/myo.rb