radu-matei / websocket-manager

Real-Time library for ASP .NET Core
https://radu-matei.com/blog/real-time-aspnet-core/
MIT License
452 stars 183 forks source link

How to call server in c# client #71

Open helmishariff opened 6 years ago

helmishariff commented 6 years ago

I tried this but no success.

InvocationDescriptor invocation = new InvocationDescriptor(); invocation.Identifier = Guid.Parse(_clientId); invocation.MethodName = "CallServer";

        await _connection.SendAsync(invocation);

on the server: public async Task CallServer() { }