import io from 'socket.io-client'
import {
addCookieMeta, cookieMiddleware, middleware as createSocketMiddleware
} from 'cape-redux-socket'
const location = process.env.SOCKET_LOC || ''
const socket = createSocketMiddleware(io(location), { getEmitAction: addCookieMeta })
const middleware = [
cookieMiddleware,
socket,
]
export socket, { idReducer as id } from 'cape-redux-socket'