import { createServer as createStaticServer } from './static-server' ; import { SocketNotify } from './socket-notify' ; import { createIO } from './socket-server' ; import { Store } from '../types/redux' ; export const createServer = ( store , socketNotify ) => { const server = createStaticServer ( ) ; const io = createIO ( store , socketNotify ) ; io . attach ( server . server ) ; return server ; } ;