aaronk Well-Known Member Licensed User Longtime User Dec 22, 2017 #1 Hi, I am trying to work out how to use this websocket API in B4J. It says that it's a websocket but the URL it connects to is https://... where I thought it should be ws:// (or wss://) API I am trying to use is: https://github.com/BTCMarkets/API/wiki/websocket I tried using: https://www.b4x.com/android/forum/threads/jwebsocketclient-library.40985/#content I then tried changing the URL to https://socket.btcmarkets.net but it doesn't come up saying it had connected. Any ideas where I have gone wrong, or is not a valid WebSocket ?
Hi, I am trying to work out how to use this websocket API in B4J. It says that it's a websocket but the URL it connects to is https://... where I thought it should be ws:// (or wss://) API I am trying to use is: https://github.com/BTCMarkets/API/wiki/websocket I tried using: https://www.b4x.com/android/forum/threads/jwebsocketclient-library.40985/#content I then tried changing the URL to https://socket.btcmarkets.net but it doesn't come up saying it had connected. Any ideas where I have gone wrong, or is not a valid WebSocket ?
LucaMs Expert Licensed User Longtime User Dec 22, 2017 #2 Have you tried: "wss://socket.btcmarkets.net"? [BTW I think that it's no more time to buy bitcoins; if you really want to do it, better cash bitcoins ] Upvote 0
Have you tried: "wss://socket.btcmarkets.net"? [BTW I think that it's no more time to buy bitcoins; if you really want to do it, better cash bitcoins ]
aaronk Well-Known Member Licensed User Longtime User Dec 22, 2017 #3 LucaMs said: Have you tried: "wss://socket.btcmarkets.net"? Click to expand... Yeah, I tried that it didn't connect. [Not planning on buying any BitCoins, just using that for testing] Upvote 0
LucaMs said: Have you tried: "wss://socket.btcmarkets.net"? Click to expand... Yeah, I tried that it didn't connect. [Not planning on buying any BitCoins, just using that for testing]
Erel B4X founder Staff member Licensed User Longtime User Dec 24, 2017 #4 It doesn't look valid. The websocket scheme must be ws or wss. Upvote 0
aaronk Well-Known Member Licensed User Longtime User Dec 24, 2017 #5 Erel said: It doesn't look valid. Click to expand... That's what I thought. I might have to use the http API they have. Upvote 0
Erel said: It doesn't look valid. Click to expand... That's what I thought. I might have to use the http API they have.