Update 'src/App.js'
This commit is contained in:
parent
3f599fd979
commit
997bfdf77a
@ -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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user