|
@@ -5,9 +5,10 @@ import PubSub from 'pubsub-js';
|
|
// const [fooEvents, setFooEvents] = useState([]);
|
|
// const [fooEvents, setFooEvents] = useState([]);
|
|
|
|
|
|
class AccountAuth {
|
|
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"],
|
|
transports: ["websocket", "polling"],
|
|
// path: '',
|
|
// path: '',
|
|
autoConnect: true,
|
|
autoConnect: true,
|