Comments (11)
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.
Thanks for the tip @thebeekeeper I'm still new to Meteor, may have failed to catch this in the DDP docs.
from ddpclient.net.
It wasn't in the docs, I just tried a few changes in the code and it ended up working
from ddpclient.net.
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.
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.
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.
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.
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.
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.
I will check this out.
from ddpclient.net.
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)
- Are there any plans to support for authentication? HOT 3
- .Connect hangs if server is down HOT 2
- .net c# error "'meteorddp.Program.Subscriber' does not implement interface member 'Net.DDP.Client.IDataSubscriber.Session'" HOT 2
- Nothing happened ? HOT 1
- what function about client.AddItem()?
- Net.DDP.Client missing Newtonsoft.Json HOT 6
- WebSocket4Net v 0.12 silently stops sending messages after about 60 seconds HOT 1
- Issues using the (nuget version) DDPClient on Windows Phone 8.1 HOT 3
- Update DDP support to latest specification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddpclient.net.