Git Product home page Git Product logo

meteor.ddp's People

Contributors

cybernet35 avatar fidergo-stephane-gourichon avatar sgaluza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor.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

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 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.