public ChatServerContext(Config configManager)
 {
     Config = configManager;
     Actions = new ChatActionContext();
     Users = new UserManager(Actions);
     Messages = new MessageManager(Actions);
     Channels = new ChannelManager(Actions);
 }
Exemple #2
0
 private void HandleChannelUpdate(ChannelManager manager, Channel old, Channel chan)
 {
     Socket.WebSocketServices[Endpoint].Sessions.Broadcast(Shared.Pack(
         ServerMethod.Channel,
         1, // channel updated
         old.Name,
         chan.Name,
         chan.HasPassword,
         chan.IsTemporary
     ));
 }
Exemple #3
0
 private void HandleChannelRemove(ChannelManager manager, Channel chan)
 {
     Socket.WebSocketServices[Endpoint].Sessions.Broadcast(Shared.Pack(
         ServerMethod.Channel,
         2, // channel deleted
         chan.Name
     ));
 }
Exemple #4
0
 private void HandleChannelClear(ChannelManager manager)
 {
     Socket.WebSocketServices[Endpoint].Sessions.Broadcast(Shared.Pack(ServerMethod.Clear, 2));
 }
Exemple #5
0
 private void HandleChannelUpdate(ChannelManager manager, Channel old, Channel chan)
 {
 }
Exemple #6
0
 private void HandleChannelRemove(ChannelManager manager, Channel chan)
 {
 }
Exemple #7
0
 private void HandleChannelClear(ChannelManager manager)
 {
 }
Exemple #8
0
 private void HandleChannelAdd(ChannelManager manager, Channel chan)
 {
 }