Code-Sharp / WampSharp

A C# implementation of WAMP (The Web Application Messaging Protocol)
http://wampsharp.net
Other
385 stars 83 forks source link

Windows forms app problem #339

Closed pgitsov closed 2 years ago

pgitsov commented 2 years ago

When I test the client-side authentication (https://wampsharp.net/wamp2/client/client-side-authentication/) from a Console App everything works as expected, however the same code doesn't work from a Forms App - the Authenticate() method of my TicketAuthenticator is never called and await channel.Open().ConfigureAwait(false); just hangs. Do I need to take additional steps when connecting from a Forms App?

pgitsov commented 2 years ago

Moving the WAMP code to a separate thread fixed the problem.