Esempio n. 1
0
 public ChatServerContext(Config configManager)
 {
     Config = configManager;
     Actions = new ChatActionContext();
     Users = new UserManager(Actions);
     Messages = new MessageManager(Actions);
     Channels = new ChannelManager(Actions);
 }
Esempio n. 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
     ));
 }
Esempio n. 3
0
 private void HandleChannelRemove(ChannelManager manager, Channel chan)
 {
     Socket.WebSocketServices[Endpoint].Sessions.Broadcast(Shared.Pack(
         ServerMethod.Channel,
         2, // channel deleted
         chan.Name
     ));
 }
Esempio n. 4
0
 private void HandleChannelClear(ChannelManager manager)
 {
     Socket.WebSocketServices[Endpoint].Sessions.Broadcast(Shared.Pack(ServerMethod.Clear, 2));
 }
Esempio n. 5
0
 private void HandleChannelUpdate(ChannelManager manager, Channel old, Channel chan)
 {
 }
Esempio n. 6
0
 private void HandleChannelRemove(ChannelManager manager, Channel chan)
 {
 }
Esempio n. 7
0
 private void HandleChannelClear(ChannelManager manager)
 {
 }
Esempio n. 8
0
 private void HandleChannelAdd(ChannelManager manager, Channel chan)
 {
 }