Bitcoin Forum
June 29, 2024, 01:23:12 PM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest Bitcoin Core release:
27.0
[
Torrent
]
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Economy
>
Marketplace
>
Service Discussion
>
Mtgox Websockets API only working sometimes
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: Mtgox Websockets API only working sometimes (Read 1763 times)
loourr
(OP)
Newbie
Offline
Activity: 21
Merit: 0
Mtgox Websockets API only working sometimes
August 31, 2013, 11:29:48 PM
#1
I have a class which collects data from mtgox (written in coffeescript) using websockets. The trouble is that it only works sometimes. I never change the code but sometimes when I start it, it will continually log in on message and other times it wont. If it dosent start right off the bat, regardless of how long I leave it on it will not begin to work. However if I restart the process it may start immediately or it may once again not work. It seems totally random.
Has anyone else had this problem? Is there some way to fix it? am I doing something wrong?
here's my code
events = require 'events'
io = require 'socket.io-client'
colors = require 'colors'
config = require "../config/config"
module.exports = class Mtgox extends events.EventEmitter
constructor: () ->
@socket = io.connect(config.MTGOX_WEBSOCKET_URL)
@channels = config.MTGOX_CHANNELS
@socket.on('connect', () =>
console.log "in main on connect"
@socket.on('message', (message) =>
console.log "in on message"
@emit(message.private, message[message.private])
)
)
ofer
Newbie
Offline
Activity: 12
Merit: 0
Re: Mtgox Websockets API only working sometimes
September 04, 2013, 07:59:57 PM
#2
Hi,
I can confirm this issue.
I have a sokcet.io connected to mtgox in nodejs environment.
I also get the same behavior.
I now consider to use their REST API, since this behavior is unacceptable for production.
Hope this helps,
Ofer
tgerring
Full Member
Offline
Activity: 142
Merit: 100
Hive/Ethereum
Re: Mtgox Websockets API only working sometimes
September 04, 2013, 09:56:26 PM
#3
Quote from: loourr on August 31, 2013, 11:29:48 PM
Has anyone else had this problem? Is there some way to fix it? am I doing something wrong?
Yes. No. Yes, relying on MtGox websockets after a long track record of crap websockets.
Hive
, a beautiful wallet for Mac OS X, now available for testing. Follow the story
here
.
BitcoinKit.framework
and
Tor.framework
, now available to iOS and Mac OS X developers
Tweeting at
@hivewallet
. Donations appreciated at
142m1MpXHhymF4aASiWwYohe1Y55v5BQwc
Jan
Legendary
Offline
Activity: 1043
Merit: 1002
Re: Mtgox Websockets API only working sometimes
September 05, 2013, 03:39:26 PM
#4
Maybe related to this:
https://bitcointalk.org/index.php?topic=286422.0
Mycelium
let's you hold your private keys private.
loourr
(OP)
Newbie
Offline
Activity: 21
Merit: 0
Re: Mtgox Websockets API only working sometimes
September 16, 2013, 08:19:45 PM
#5
Quote
I now consider to use their REST API, since this behavior is unacceptable for production.
I was using their REST API until I realized that sometimes it would just give flat out incorrect data.
jav
Sr. Member
Offline
Activity: 249
Merit: 251
Re: Mtgox Websockets API only working sometimes
September 16, 2013, 10:06:40 PM
#6
My understanding is, that Mt.Gox offers two streaming interfaces: Socket.IO and Websockets. Socket.IO has the option of using Websockets as one of the underlying transport mechanisms, but it still seems to be dealt with differently by Mt.Gox's server. I have long used Socket.IO for Bridgewalker (when I launched it was the only option available, as far as I know) and had lots of issues with it. It was very unreliable and actually got even more unreliable in the last couple of weeks. I have now recently switched to a pure Websocket implemention (using wss://websocket.mtgox.com/mtgox as the endpoint) and so far that seems to be more stable. So I would suggest replacing Socket.IO with a pure Websocket implementation.
Hive
, a beautiful wallet
with an app platform
for
Mac OS X
,
Android
and
Mobile Web
.
Translators wanted!
iOS and OS X devs see
BitcoinKit
. Tweets
@hivewallet
. Donations appreciated at
1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn
.
Pages: [
1
]
Print
Bitcoin Forum
>
Economy
>
Marketplace
>
Service Discussion
>
Mtgox Websockets API only working sometimes
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...