🔧 Another socket host hack
This commit is contained in:
@@ -5,7 +5,8 @@ import thunk from "redux-thunk";
|
|||||||
import createRootReducer from "../reducers";
|
import createRootReducer from "../reducers";
|
||||||
import socketIO from "socket.io-client";
|
import socketIO 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 io = socketIO(`http://localhost:3001`);
|
||||||
export const history = createBrowserHistory();
|
export const history = createBrowserHistory();
|
||||||
const configureStore = (initialState) => {
|
const configureStore = (initialState) => {
|
||||||
const store = createStore(
|
const store = createStore(
|
||||||
|
|||||||
Reference in New Issue
Block a user