module MtGox::Websocket::API

Public Instance Methods

subscribe(channel) click to toggle source
# File lib/mtgox/websocket/api.rb, line 6
def subscribe(channel)
  payload = {
    channel: channel,
    op:      'mtgox.subscribe'
  }

  @conn.send(payload.to_json)
end
unsubscribe(channel) click to toggle source
# File lib/mtgox/websocket/api.rb, line 15
def unsubscribe(channel)
  payload = {
    channel: channel,
    op:      'unsubscribe'
  }

  @conn.send(payload.to_json)        
end