Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    David
    @bitomule
    @mikey0000 I’m back to work if you need any help trying to find why subscriptions doesn’t stop. I’m using publish composite on meteor side btw
    David
    @bitomule
    @mikey0000 did you have time to test this? any idea on why subscriptions doesn’t stop?
    Michael Arthur
    @mikey0000
    I'm going to take a look today, I might take a look at publish composite, I've not seen this happen in a default setup.
    David
    @bitomule
    Great, I'll try resetting delegate
    I'm using it in swift and resetting the meteor client crashes the app
    David
    @bitomule
    If there’s any way to reset meteorClient it would also be great, right now it crashes as SRWebSocket keeps receiving messages but delegate is nil
    Michael Arthur
    @mikey0000
    my gut feeling after a brief look is the issue is most likely with publish composite as that is controlling the reactivity, I don't unfortunately have time to debug this issue. ObjectiveDDP works with the DDP protocol so it may be that the lib doesn't fully support DDP properly. If I get a disconnection or unsub/resub DDP will send the entire collection over the wire. try to play with DDP in the browser and see what the behaviour is there.
    @bitomule if you can't reproduce this behaviour in the browser I can try and take a deeper look, for me to do that can you provide a sample project that reproduces the behaviour?
    David
    @bitomule
    @mikey0000 I'll try to reproduce it on the browser and keep you updated
    Thanks
    David
    @bitomule
    any idea on how to unsubscribe in web client?
    David
    @bitomule
    @mikey0000 tested unsubscribe with publishComposite on web and works as expected
    I call stop on subscription handler and data is removed
    subscribing again calls added for each document
    askri79
    @askri79
    Hi guys
    Can I use ObjectiveDDP to connect to PostgreSQL on Meteor server.
    David
    @bitomule
    Any idea on how to renew login token? It expires after some time and login using token doesn’t return a new onw
    Michael Arthur
    @mikey0000
    @bitomule my understanding of OAuth is you should also receive (if supported) a refresh token to refresh your login token.
    @askri79 ObjectiveDDP only speaks DDP protocol if the postgresql backend works with DDP then yes.
    idelrich
    @idelrich
    This thread was pretty active until last September, then suddenly nothing. Are there still people here? I have been using ObjectiveDDP for some time now (with several "products" built on it, but having some issues with the best way to deal with ensure I am connected after resuming from the background.
    Michael Arthur
    @mikey0000
    @idelrich Yes I am still here
    I basically am the maintainer of this repository, I try to help out when I can.
    idelrich
    @idelrich
    Okay - In parallel I have been working on a set of libraries that sit on top of ObjectiveDDP. One is called "CollectionManager" and it provides some support for managing the "user" object (post login), as well as support for "Subscription Lists" (like iron:routers passing an array of subscriptions in the waitOn or data methods). The subscribe lists wait for all of the enclosed "_ready"'s and then sends it own single _ready notification. Collection Manager also uses a library called MongoConverter to take all of the added, removed, changed calls and convert the objects into CoreData.
    (CollectionManage and MongoConverter are both developed by myself).
    Michael Arthur
    @mikey0000
    cool
    idelrich
    @idelrich
    Thanks - here is the situation (and I suspect it is more a socketRocket thing than an ObjectiveDDP thing, but...)
    When the user switches away from the app for a short time and then returns, things tend to re-sync just fine. the server re-sends a bunch of data (I haven't done a deep dive, but it could be all of the subscriptions) and things work fine.
    However, sometimes (and typically when the switch away is longer), when the app comes back to active, the Meteor client seems disconnected, and any attempt to talk to the server seems to fall on deaf ears. I don't get error codes and I don't get data.
    Michael Arthur
    @mikey0000
    It may be that the heartbeat message has not been replied to for too long
    DDP has whats called a heartbeat that ping and pongs between the server and client
    idelrich
    @idelrich
    So possible solutions are (1) Tear down and rebuild the entire stack (ObjectiveDDP, Meteor Client, SocketRocket, all of my subscriptions, etc.) and wait for the data to re-sync (expensive to do every switch in & out) or (2) better understand why things are stalling and kick just the specific piece that is non-responsive (i.e. force the socket to re-connect or force meteor client to reconnect, or some such). I'm just not sure what the best way to accomplish that is.
    Michael Arthur
    @mikey0000
    now I have not used this project in quite a while so it would all depend on how meteor decides to handle a connection that is not ponging back
    idelrich
    @idelrich
    (Oops missed your comment) - yes I'm sure the heartbeat is not being responded to. Would it be enough for my app to send a "ping" and expect a server "pong" to get things going again?
    Michael Arthur
    @mikey0000
    perhaps, its worth a try
    idelrich
    @idelrich
    I'll try just about anything to get this working :-)
    Michael Arthur
    @mikey0000
    well give that a go and let me know, If you are able to supply a repro project or if it happens with the sample app then I can try and find some time to look at it
    idelrich
    @idelrich
    Actually hold that thought - in looking at where to stick in the ping, I may have found the issue (perhaps a case of having overlooked the same piece of code for too long). At any rate I may have been being overly aggressive in trying to re-connect after background mode and shot myself in the foot. Will require some testing to be sure.
    Michael Arthur
    @mikey0000
    righto
    idelrich
    @idelrich
    I will be presenting your library and my collectionManager and MongoConverter later this month at a Toronto Meteor MeetUp. After that, if you are interested I can share the slide deck (and perhaps more)/.
    Michael Arthur
    @mikey0000
    sure, definitely
    stella24
    @stella24
    hey
    Michael Arthur
    @mikey0000
    Hello
    stella24
    @stella24
    needed a bit of information about <how its been working here>
    Michael Arthur
    @mikey0000
    Sorry don't quite understand what your asking. As for the condition of the project, its in maintenance mode until someone else picks it up and works on it. I take any pr's that people have for the project and overall comms. Jesse doesn't really have time to maintain this project
    Liam
    @liamjsm
    Hi @idelrich -- did you every share your collectionManager and MongoConverter?
    idelrich
    @idelrich
    No I didn't, I did however recently drop a full set of source to another startup and they succeeded in integrating the library with their tools in under a day. I don;t know that I have the bandwidth for a full open source, but if you are interetsed we can connect directly.
    idelrich
    @idelrich
    @liamjsm - Previous reply was meant to be at you...
    Liam
    @liamjsm
    @idelrich i would be interested. do you want to email me ? liam@knote.com
    Artsiom
    @ArtIstomin
    Hi everyone, i have a question about login via facebook on native ios app with ObjectiveDDP connector.
    How can i do login flow for ios? Can i use logonWithOAuthAccessToken method for this?
    thx