Update 'src/App.js'

This commit is contained in:
Sergiu Toma 2021-02-25 13:18:16 +00:00
parent 3f599fd979
commit 997bfdf77a
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class App extends Component {
}
handleLoginClick = async () => {
const loginRequest = await fetch('https://dev.linx.safemobile.com/api/login', {
const loginRequest = await fetch('https://stage.linx.safemobile.com/api/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@ -203,7 +203,7 @@ class App extends Component {
const loginResponseJson = await loginRequest.json();
this.setState({ user: loginResponseJson.data }, () => {
// Connect to HUB
this.setState({ socket: io("https://hub.dev.linx.safemobile.com/", {reconnect:true, transports: ['websocket']}) }, () => {
this.setState({ socket: io("https://hub.stage.linx.safemobile.com/", {reconnect:true, transports: ['websocket']}) }, () => {
// socket = this.state.socket;
this.state.socket.on('connect', () => {
this.setState({ hubStatus: 2 })