We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Actually was able to get this to work. Just run the first section (up until ws$connect) and then run the WS$send seperately. To stop, type ws$close()
rm(list-ls())
library(websocket) library(jsonlite)
#================================================
#================================================ ws <- WebSocket$new("wss://ws-feed.pro.coinbase.com",autoConnect = FALSE)
ws$onOpen(function(event){ cat("Connection opened...\n") })
ws$onMessage(function(event){ print(fromJSON(event$data)) })
ws$onClose(function(event){ cat("Client disconnected...\n") })
ws$onError(function(event){ cat("Client failed to connect: ", event$message, "\n") })
ws$connect()
ws$send( '{ "type": "subscribe", "product_ids": [ "ETH-USD", "ETH-EUR" ], "channels": [ "level2", "heartbeat", { "name": "ticker", "product_ids": [ "ETH-BTC", "ETH-GBP" ] } ] }' )
Sorry, something went wrong.
Thanks. Getting around this after a while. Let me check this out and if need be, I can work on a detailed enhancement.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: