text: import Notifications from '../helper/Notifications';
  
  export default (io) => {
    io.on('connect', (client) => {
      client.on('admin', () => {
        client.join('admin');
      });
      const Notification = new Notifications(io);
      client.on('GET_ALL_NOTIFICATIONS', (data) => {
        Notification.getAllNotifications(data);
      });
      client.on('ADD_NEW_NOTIFICATION', (data) => {
        Notification.addNotification(data);
      });
      client.on('UPDATE_NOTIFICATION', (data) => {
        Notification.updateNotification(data);
      });
    });
  };
  