private async Task SendMessageToSocketAsync(WebSocketHandler handler, Connection connection, string methodName, params object[] args) { var serializedMessage = MessageSerializer.SerializeObject(new InvocationDescriptor() { Id = Interlocked.Increment(ref _nextId).ToString(), MethodName = methodName, Arguments = args }); await handler.ReceiveAsync(connection, serializedMessage); }
public override Task OnConnectedAsync(Connection connection) { throw new Exception(); }
private async Task SendMessageToSocketAsync(WebSocketHandler handler, Connection connection, string message) { await handler.ReceiveAsync(connection, message); }