diff --git a/src/client/store/index.ts b/src/client/store/index.ts index e285a16..a1433f6 100644 --- a/src/client/store/index.ts +++ b/src/client/store/index.ts @@ -3,17 +3,22 @@ import { createStore, applyMiddleware, compose } from "redux"; import { createBrowserHistory } from "history"; import thunk from "redux-thunk"; import createRootReducer from "../reducers"; -import socketIO from "socket.io-client"; +import { io } from "socket.io-client"; import socketIoMiddleware from "redux-socket.io-middleware"; // import { SOCKET_BASE_URI } from "../constants/endpoints"; -const io = socketIO(`http://rook:3001`); +// const socketConnection = io(`http://rook:3001`); + export const history = createBrowserHistory(); const configureStore = (initialState) => { const store = createStore( createRootReducer(history), initialState, compose( - applyMiddleware(socketIoMiddleware(io), thunk, routerMiddleware(history)), + applyMiddleware( + // socketIoMiddleware(socketConnection), + thunk, + routerMiddleware(history), + ), // window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), ), );