Chat events - Softeq/NetKit.Chat.SignalRClient GitHub Wiki

OnConnectedAsync

-

OnDisconnectedAsync

-

GetClientAsync

-

AddClientAsync

-

DeleteClientAsync

-

AddMessageAsync

  1. MessageAdded (all except caller connectionId). MessageResponse

DeleteMessageAsync

  1. MessageDeleted (all connections related to channel members). MessageId
  2. ChannelUpdated (all connections related to channel members). ChannelSummary

UpdateMessageAsync

  1. MessageUpdated (all connections related to channel members). MessageResponse

MarkAsReadMessageAsync

  1. LastReadMessageChanged (all connections related to channel members (TODO except caller connectionIds)). ChannelId

InviteMemberAsync

  1. MemberJoined (added member connectionsIds). Personalized ChannelSummaryResponse
  2. System Message - MemberJoined - MessageAdded (all connections related to channel members). MessageResponse

InviteMultipleMembersAsync

  1. MemberJoined (all connections related to channel members). MemberSummaryResponse, ChannelSummaryResponse

DeleteMemberAsync (only for group chat)

  1. MemberLeft (all connections related to deleted member). ChannelId
  2. System Message - MemberDeleted - MessageAdded (all except deleted member connectionIds). MessageResponse

CreateChannelAsync

  1. MemberJoined (all connections related to channel members except caller connectionId). Personalized ChannelSummaryResponse

CreateDirectChannelAsync

  1. MemberJoined (all connections related to channel members (TODO except caller connectionId)). Personalized ChannelSummaryResponse

UpdateChannelAsync

  1. ChannelUpdated (all connections related to channel members (TODO except caller connectionId)). ChannelSummaryResponse
  2. System Message (Conditional (name changed, photo changed)) - MessageAdded (all connections related to channel members). MessageResponse

CloseChannelAsync

  1. ChannelClosed (all connections related to channel members). ChannelId

LeaveChannelAsync

  1. MemberLeft (all caller connectionIds). ChannelId
  2. System Message - MemberLeft - MessageAdded (all except left member connections). MessageResponse

MuteChannelAsync

-

PinChannelAsync

-