Module: MtGox::Websocket::API
- Included in:
- Client
- Defined in:
- lib/mtgox/websocket/api.rb
Instance Method Summary collapse
Instance Method Details
#subscribe(channel) ⇒ Object
6 7 8 9 10 11 12 13 |
# 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) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/mtgox/websocket/api.rb', line 15 def unsubscribe(channel) payload = { channel: channel, op: 'unsubscribe' } @conn.send(payload.to_json) end |