import PubsubDriver from 'pubsub-js-client/PubsubDriver';
import { configurePubSub as presencePubSub } from 'web-client/utilities/presence-util';
import { configurePubsub } from 'web-client/utilities/friends-list/settings';
import ENV from '../config/environment';

export default {
  name: 'pubsub',
  initialize() {
    let driver = PubsubDriver.getInstance(ENV.pubsub.environment);
    configurePubsub(driver);
    presencePubSub(driver);
  }
};
