|
@@ -161,10 +161,13 @@ cc.Class({
|
|
|
|
|
|
_initSocketMng() {
|
|
_initSocketMng() {
|
|
let testUrl = 'wss://test-message-taptap.duowan.com/connect';
|
|
let testUrl = 'wss://test-message-taptap.duowan.com/connect';
|
|
- // let pUrl = 'wss://new-message-taptap.duowan.com/connect';
|
|
|
|
let pUrl = 'wss://message-taptap.duowan.com/connect';
|
|
let pUrl = 'wss://message-taptap.duowan.com/connect';
|
|
- let socketUrl = GameGlobal.debug ? testUrl : pUrl;
|
|
|
|
|
|
+ let qqUrl = 'wss://qq-message-taptap.duowan.com';
|
|
|
|
+ var socketUrl = GameGlobal.debug ? testUrl : pUrl;
|
|
// let socketUrl = 'ws://172.16.15.196:9099/connect';
|
|
// let socketUrl = 'ws://172.16.15.196:9099/connect';
|
|
|
|
+ if (CC_QQPLAY) {
|
|
|
|
+ socketUrl = GameGlobal.debug ? testUrl : qqUrl;
|
|
|
|
+ }
|
|
|
|
|
|
let ws = new WsManager(socketUrl, {
|
|
let ws = new WsManager(socketUrl, {
|
|
binaryType: 'arraybuffer',
|
|
binaryType: 'arraybuffer',
|