meteor.ddp's People
Forkers
devinceble markvj19 dsuarezv cybernet35 dvelopment easyprint vishalishere rehnarama lerot paulyoufu fidergo-stephane-gourichon efrenps nerocui mollsandhershmeteor.ddp's Issues
.NET version ?
hello,
what is the minimum .Net version required ? I use Unity so I am stuck to 2.5. Is it OK ?
Authentication and Methods?
Hi there,
Just curious if this library supports Meteor authentication and method calls as well as the subscriptions?
Thanks,
Steve
Test if _socket is disposable.
public void Dispose()
{
if (this._socket != null)
{
this._socket.Dispose();
}
}
line 207 in DdpClient.cs
Method return value
Hey, is it possible to get the return value of a called method?
Subscription not returning collection
Hi, good afternoon!
I'm trying to return a Meteor Collection to a C# console application. Following the docs, I was able to implement Meteor.DDP to publish information to Meteor Server. But my problem resides on the subscription. My server detects that a subscription call was made, but my C# app doesn't return anything from it.
Here's the code of my Meteor publication
Meteor.publish('MeteorPublished', () => {
console.log('publication called');
return Clients.find({});
});
Heres the Meteor.DDP C# code
public class ServerComunication
{
private static DdpClient client;
public static void ConnectToServer()
{
client = new DdpClient("localhost:3000");
client.ConnectAsync().Wait();
Subscribe();
ReturnComanda();
// Subscribe or publish then...
}
private static void Subscribe()
{
client.Message += OnMessage;
client.Subscribe(Guid.NewGuid().ToString("N"), "MeteorPublished");
}
private static void OnMessage(object sender, DdpMessageEventArgs e)
{
Console.WriteLine("Message from Meteor! Item {0}::{1}: {2}\n{3}", e.Collection, e.Id, e.Method, e.Data);
}
private static void ReturnComanda()
{
client.Publish(Guid.NewGuid().ToString("N"), "MeteorMethod", new
{
hello = "hello",
data = "Hello, Meteor!!!"
});
}
}
When I run the app, Meteor server logs publication called
. But C# console doesn't log anything.
Am I missing something?
PS: the Publish function works just fine
Thanks,
Marcelo
How to upload files using Meteor.DDP to FS collection
Hi,
I am trying to find way to upload files using Meteor.DDP to FS collection.
Please let me know if there is any way doing this from .net client.
Don't want to store Base64 string to MongoDB, instead want to save as file to FS collection.
Any Quick help is appreciated.
Thanks in advance,
Sanjay Jha
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.