Skip to content

Commit ff07fec

Browse files
author
gondzo
committed
change socket url config variables
1 parent eb068ea commit ff07fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/DronesMap/modules/DronesMap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {handleActions} from 'redux-actions';
22
import io from 'socket.io-client';
33
import APIService from 'services/APIService';
4-
import config from '../../../../config/default';
4+
import config from '../../../config/index';
55

66
// Drones will be updated and map will be redrawn every 3s
77
// Otherwise if drones are updated with high frequency (e.g. 0.5s), the map will be freezing
@@ -32,7 +32,7 @@ export const init = () => async(dispatch) => {
3232
const {body: {items: drones}} = await APIService.searchDrones({limit: DRONE_LIMIT});
3333
lastUpdated = new Date().getTime();
3434
dispatch({type: DRONES_LOADED, payload: {drones}});
35-
socket = io(config.API_BASE_PATH);
35+
socket = io(config.socket.url);
3636
socket.on('dronepositionupdate', (drone) => {
3737
pendingUpdates[drone.id] = drone;
3838
if (updateTimeoutId) {

0 commit comments

Comments
 (0)