Git Product home page Git Product logo

Comments (11)

thebeekeeper avatar thebeekeeper commented on August 30, 2024

For anybody still looking at this, the issue is that newer versions of Meteor require a value to be sent for version in the connect message. I modified _socket_Opened() in DDPConnector to the following:

this.Send("{\"msg\":\"connect\", \"version\": \"pre1\" }");

from ddpclient.net.

bangonkali avatar bangonkali commented on August 30, 2024

Thanks for the tip @thebeekeeper I'm still new to Meteor, may have failed to catch this in the DDP docs.

from ddpclient.net.

thebeekeeper avatar thebeekeeper commented on August 30, 2024

It wasn't in the docs, I just tried a few changes in the code and it ended up working

from ddpclient.net.

sonyarouje avatar sonyarouje commented on August 30, 2024

Thanks thebeekeeper for fixing the issue. I was very busy for last so many months and unable to spend any time for this project.

from ddpclient.net.

bangonkali avatar bangonkali commented on August 30, 2024

Thanks @thebeekeeper! Very tricky problem indeed because it's not yet properly documented. I hope MeteorJS docs would really improve.

On Wed, Nov 6, 2013 at 1:05 PM, Sony Arouje [email protected]:

Thanks thebeekeeper for fixing the issue. I was very busy for last so many
months and unable to spend any time for this project.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27843360
.

from ddpclient.net.

engkan2kit avatar engkan2kit commented on August 30, 2024

I can't receive any data in my C# program. I just followed a similar code as above. I also rebuilt the client.dll because I added @thebeekeeper's suggestion.

I can however see that someone subscribe to the collection when I ran my application (I added a console.log inside the publish).

from ddpclient.net.

engkan2kit avatar engkan2kit commented on August 30, 2024

I was able to make the call work. But I can't understand how to make subscription work. I just wanted to inform my client that a document is added in the collection. I tried to .observeChanges the collection and added a handle for the added event in the callback. For the C# program, I added an if(data.type=="added"). I tried adding a document but the client never received anything.

from ddpclient.net.

bangonkali avatar bangonkali commented on August 30, 2024

If the new document was added directly to MongoDB without going through an insert command from one of the collections at Meteor Layer, the subscribe should take longer to realize there are changes (about 10 sec). Try adding through Meteor Collection.Insert if this changes the case.

from ddpclient.net.

engkan2kit avatar engkan2kit commented on August 30, 2024

I've waited for more than 5 minutes. But there was no response. For the Nodejs version of the DDP client, there was no problem.

from ddpclient.net.

sonyarouje avatar sonyarouje commented on August 30, 2024

I will check this out.

from ddpclient.net.

stefanopiovesan avatar stefanopiovesan commented on August 30, 2024

I had no callback in the Subscriber::DataReceived(dynamic data) too. But I noticed that when adding an item with Products.insert() in the meteor server side, the JsonDeserializeHelper::Deserialize(string jsonItem) function was called. Then I added there an "else if (jObj["msg"] != null) { // some code; this._subscriber.DataReceived(entity); }" to call the subsriber.

from ddpclient.net.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.