Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happened ? #13

Open
rakibulalam opened this issue Apr 5, 2017 · 1 comment
Open

Nothing happened ? #13

rakibulalam opened this issue Apr 5, 2017 · 1 comment

Comments

@rakibulalam
Copy link

rakibulalam commented Apr 5, 2017

I try a lot to connect with meteor apps using this package. But there is no way to understand what about the connection is work or not. Even no error, no message. following my code:

[class MainClass
{
public static void Main(string[] args)
{
IDataSubscriber subscriber = new Subscriber();
DDPClient client = new DDPClient(subscriber);

		client.Connect("localhost:3000");
		// or if you want to connect over SSL
		// client.Connect("localhost:3000", true);
		// or if you prefer a more explicit approach
		// client.Connect("localhost:3000", useSsl: true);

		client.Subscribe("findproducts");
			


	}



	class Subscriber : IDataSubscriber
	{
		string IDataSubscriber.Session
		{
			get
			{
				throw new NotImplementedException();
			}

			set
			{
				throw new NotImplementedException();
			}
		}

		public void DataReceived(dynamic data)
		{
			Console.WriteLine(data);
				if (data.type == "subs")
				{
					Console.WriteLine(data.prodCode + ": " + data.prodName + ": collection: " + data.collection);
				}

		}

		//void IDataSubscriber.DataReceived(dynamic data)
		//{
		//	Console.WriteLine(data);
		//	throw new NotImplementedException();
		//}
	}](url)

I realy upset after spending couple of hours. :( ++

@FrancisBou
Copy link

Did you ever find a solution for this, is this project useful at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants