private void ProcessOnJoinMessage(ServerEventMessage e) { var msg = new ServerEventJoin().Populate(e, JsonServiceClient.ParseObject(e.Json)); OnJoinReceived(msg); OnCommandReceived(msg); }
protected void OnJoinReceived(ServerEventJoin e) { if (log.IsDebugEnabled) { log.Debug($"[SSE-CLIENT] OnJoinReceived: ({e.GetType().Name}) #{e.EventId} on #{ConnectionDisplayName} ({string.Join(", ", Channels)})"); } OnJoin?.Invoke(e); }
private void ProcessOnJoinMessage(ServerEventMessage e) { var msg = JsonServiceClient.ParseObject(e.Json); var joinMsg = new ServerEventJoin().Populate(e, msg); joinMsg.UserId = msg.Get("userId"); joinMsg.DisplayName = msg.Get("displayName"); joinMsg.ProfileUrl = msg.Get("profileUrl"); OnCommandReceived(joinMsg); }