Oyatel / CometD.NET

CometD.NET is a C# client library for the Bayeux protocol
44 stars 34 forks source link

Example usage code #4

Closed richkershaw closed 13 years ago

richkershaw commented 13 years ago

As it stands, the library is somewhat impenetrable. Use of Interfaces and lack of inline documentation mean it's hard to figure out how to use it in another project - have you got any example code where a connection's established and pub/sub stuff goes on? I'm pretty desperate for a .NET Bayeux client!

As an aside, I'm hoping that since it's a standard protocol, it'll work with this: http://faye.jcoglan.com/node.html - will report back once it's up and running.

Thanks!

grEvenX commented 13 years ago

I djkitsch, we totally agree that there should be included some example code on how to use the library from C#. There's plenty of examples on how to use cometd/bayeux in general for the original Java library, but it would still be good to provide at least a basic example for the C# port. I have put it on our list to create such an example, so I'm hoping that we will get some time to do this pretty soon. How is your effort going?

zzattack commented 13 years ago

I've experimented with this today and am very satisfied with the results. The CometD.NET code plays very nicely with Faye, so this is definitely a hugh pre for Faye when comparing to socket.io which still lacks any .NET support.

richkershaw commented 13 years ago

grEvenX - I actually got distracted with client-side code in Objective-C, and we ended up going with ActiveMQ on the server-side, but the project's still pending.

zzattack - good job with that! Any chance of seeing the code you used to get it working?

zzattack commented 13 years ago

I put up a super simple example here.

HakanL commented 13 years ago

I used this client library in a system I'm working on, check it out here: http://github.com/HakanL/Auto-Deployment I created a simple command-line tool to connect to a comet server and push a simple key/value json object.

magnusga commented 13 years ago

I've added the usage example from the java-client, tested it, and also added a link to HakanL's project. It's all in README.TXT