Author Topic: push service for BTS community  (Read 3035 times)

0 Members and 1 Guest are viewing this topic.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Try it again alt had to reset server.. I want to rebrand site for bitshares.. Already have bitshares payment gateway installed
great

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Try it again alt had to reset server.. I want to rebrand site for bitshares.. Already have bitshares payment gateway installed
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
great! scan QR with bitshares phone wallet can be a very great service!
I think we should start this right now.

and if you want to use the push service, give me a prefix of topic name, like "bts.cryptosmtih",
I'll send you the user name and password, so you have auth to publish data to topic like "bts.cryptosmith.*", and register RPC service.
client can get all topic's last value, but if you want to get the history list of a topic,tell me the topic name, I need to add it.

If you'll publish some public data maybe anybody else can use, please give me a description, I'll add it to a public data document.
if you need some data you don't want to publish yourself, tell me, I'll add it to the data requirement, maybe anybody else can do it for you.

that's what we should do, share our data, and work together. Thanks!

BTW. http://devcoinauctions.com seems can't visit now.

PubNub is great.. im using them here for my auction website http://devcoinauctions.com

I used PHP backend (push) with JS front-end. Cuts ajax calls down 100%. Im using free service though.

I would be happy to switch over to yours! It seems this would allow people to not have to run their own nodes to use services like I did with the bitshares ticker @ cryptosmith.info... I have to pull data via the RPC to get open/close price information.. but rather would subscribe to the data via the push bot...

I can also think of another use-case... social login and single-sign on? Check out getclef.com... we can do something like that by sending push notifications that user has logged off, or loggin them in automatically based on their bitshares ID if they login using bitshares login.

Now if some delegates started to become push bot servers we can expand it to make a decentralized service that allows to pull information, so even if one goes down others still available (in the cloud).

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
PubNub is great.. im using them here for my auction website http://devcoinauctions.com

I used PHP backend (push) with JS front-end. Cuts ajax calls down 100%. Im using free service though.

I would be happy to switch over to yours! It seems this would allow people to not have to run their own nodes to use services like I did with the bitshares ticker @ cryptosmith.info... I have to pull data via the RPC to get open/close price information.. but rather would subscribe to the data via the push bot...

I can also think of another use-case... social login and single-sign on? Check out getclef.com... we can do something like that by sending push notifications that user has logged off, or loggin them in automatically based on their bitshares ID if they login using bitshares login.

Now if some delegates started to become push bot servers we can expand it to make a decentralized service that allows to pull information, so even if one goes down others still available (in the cloud).
« Last Edit: April 19, 2015, 04:04:27 pm by jsidhu »
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline lastagile

  • Full Member
  • ***
  • Posts: 144
    • View Profile
I just tried, very easy to use.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
for more example, http://btsbots.com are totally based this push service.
the source code is here: https://github.com/pch957/btsbots_exchange

U open source the btsbots!!!
It's just frontend, backend is not open source.

来自我的 HUAWEI P7-L00 上的 Tapatalk


Offline lastagile

  • Full Member
  • ***
  • Posts: 144
    • View Profile

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
for more example, http://btsbots.com are totally based this push service.
the source code is here: https://github.com/pch957/btsbots_exchange

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I have write some demo for how to use push service ,
push service is a data gateway, every project can share the push data, and the rpc service.

1. http://pusher.btsbots.com/height.html
this is a simple demo for how to push blockchain height to gateway.
and client can subscribe the topic "height", update automatic.
client can call rpc service "btsbots.get_last()" to get last data.

2. http://pusher.btsbots.com/order_book.html
this is a sample for more complex data share, update order book of market CNY/BTS

here is the source for how to use the API  to publish topic, subscribe topic, register a rpc service, call a rpc service.
https://github.com/bitsuperlab/operation_tools/tree/master/pusher

the data gateway based crossbar, and here is some introduce
http://crossbar.io/docs/Application-Scenarios/

almost support all language and os
http://wamp.ws/implementations/

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
for BTS wallet, we only need to push public data to the service, and all client can get the date which they have subscribed from the service automatic.
these public data include: market order, market history, delegate info, etc
I think this will let the wallet more quickly, just like centre exchange.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
wow .. those numbers are fantastic!! Congratulations!
the number is not true, the number will +1 even if you only visit http://btsbots.com  for 1 second.
my English is poor, I am not family with the service terms, but I think the term is very unfair.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
wow .. those numbers are fantastic!! Congratulations!

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I use push service from PubNub before,
but they charge me 100USD/month, because they say btsbots.com have several hundreds client.
Quote
Alt,

I am your Account Rep at PubNub. I received your request to downgrade to tier 1. The reason you had been upgraded to Tier 2 is because you have more than 100 Daily Active Devices using the PubNub service. It was actually over 400 in March.

In order to downgrade to Tier 1 you must get your usage below 100 devices. If you think there might be an error in the device count, please let us know. Otherwise, feel free to reach out if you have additional questions.

Thank you,
this is so expensive for me, so I develop my own push service based WAMP,  I have change all project to my own service now.
I feel it's more better than pubnub
and I am glad to provider this  service to community.
let me know if you want push service.