⏪ Reinstating socket connection to "rook"
This commit is contained in:
@@ -6,7 +6,7 @@ import createRootReducer from "../reducers";
|
|||||||
import { io } from "socket.io-client";
|
import { io } from "socket.io-client";
|
||||||
import socketIoMiddleware from "redux-socket.io-middleware";
|
import socketIoMiddleware from "redux-socket.io-middleware";
|
||||||
// import { SOCKET_BASE_URI } from "../constants/endpoints";
|
// import { SOCKET_BASE_URI } from "../constants/endpoints";
|
||||||
// const socketConnection = io(`http://rook:3001`);
|
const socketConnection = io(`http://rook:3001`);
|
||||||
|
|
||||||
export const history = createBrowserHistory();
|
export const history = createBrowserHistory();
|
||||||
const configureStore = (initialState) => {
|
const configureStore = (initialState) => {
|
||||||
@@ -15,7 +15,7 @@ const configureStore = (initialState) => {
|
|||||||
initialState,
|
initialState,
|
||||||
compose(
|
compose(
|
||||||
applyMiddleware(
|
applyMiddleware(
|
||||||
// socketIoMiddleware(socketConnection),
|
socketIoMiddleware(socketConnection),
|
||||||
thunk,
|
thunk,
|
||||||
routerMiddleware(history),
|
routerMiddleware(history),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user