Code Monkey home page Code Monkey logo

pusher.net's People

Contributors

francisrath avatar johnmurphy01 avatar vegardlarsen avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

pusher.net's Issues

More than one Event Contract

I want to set up more than one event contract with the same data structure. The event names that broadcast contain the same data structure in some instances.

PusherClient.AddContract(EventContract.Create<FileData>("file:update"));
PusherClient.AddContract(EventContract.Create<FileData>("file:delete"));

I have subscribed to the channel.GetEventSubscription<FileData>().EventEmitted event but whenever I cause my client to pick up either of these events, all I get back is:

pusher_internal:subscription_succeeded
{"presence":null}

If I remove one of the Event Contracts, things work as expected.

How do I add more than one Event Contract?

Thanks

Pusher tries to reconnect after coming out of sleep on PC

I am writing a WPF .NET application and have been using Pusher for the websocket implementation. I would call this issue an edge case but it's happening often enough that I really want to fix it. Whenever the PC goes to sleep and then returns out of sleep, the app crashes and it looks to be due to Pusher trying to reconnect the socket even though it thinks it is already connected. Here is the stack trace from the Event Viewer:

--FROM CLIENT-- INFO: System.Exception: The socket is connected, you neednt' connect again!
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Pusher.Pusher.<<.ctor>b__2>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() AT 6/29/2017 9:12:36 PM

The socket is connected, you neednt' connect again! I found in the SuperSocket source code which Pusher.NET uses. Any guidance here would be immensely helpful. I have everything wrapped in exception handling but the app still crashes and I'm not sure why. It also doesn't help that I cannot personally reproduce this issue.

Channel on Authenticator...

Hello Folks,

Great job you've done here, today I started implementing a Pusher.NET for Xamarin (iOS). I'm basing my Connection implementation on Socket Rocket (https://github.com/square/SocketRocket/) and it's proxy to .NET (https://github.com/thefactory/SocketRocket-Sharp/blob/master/TestChat/TestChatViewController.cs)

However, I'm having troble with the authenticator as for the authentication mechanism I need the channel I'm subscribing to, and including it on the C'tor doesn't seem like a feasible option.

Is there any particular reason why you didn't include the channel object on the Authenticate call?

thanks!

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.