|
@@ -5,9 +5,10 @@ import PubSub from 'pubsub-js';
|
|
|
// const [fooEvents, setFooEvents] = useState([]);
|
|
|
|
|
|
class AccountAuth {
|
|
|
- constructor(){
|
|
|
- const URL = '121.42.8.157:19702'
|
|
|
- this._socket = io(URL, {
|
|
|
+ constructor(url){
|
|
|
+ // const URL = '121.42.8.157:19702'
|
|
|
+ // this._socket = io(URL, {
|
|
|
+ this._socket = io(url, {
|
|
|
transports: ["websocket", "polling"],
|
|
|
// path: '',
|
|
|
autoConnect: true,
|