1
This commit is contained in:
parent
c66ce54497
commit
943fd1415c
@ -41,7 +41,7 @@ class TestCase {
|
||||
this.relationUrl = 'ws://127.0.0.1:7132';
|
||||
//this.relationUrl = 'ws://8.133.161.108/game1006/websocket/';
|
||||
this.loginData = null;
|
||||
this.gameWs = new ClientNet(
|
||||
this.gameConn = new ClientNet(
|
||||
this.relationUrl,
|
||||
'proto/cs_proto.proto',
|
||||
'proto/cs_msgid.proto'
|
||||
@ -75,13 +75,13 @@ class TestCase {
|
||||
}
|
||||
|
||||
async step2() {
|
||||
await this.gameWs.init();
|
||||
await this.gameWs.connect();
|
||||
this.gameWs.on('connect', () => {
|
||||
await this.gameConn.init();
|
||||
await this.gameConn.connect();
|
||||
this.gameConn.on('connect', () => {
|
||||
console.log('relation onConnect');
|
||||
this.gameWs.accountId = this.loginData['account_id'];
|
||||
this.gameWs.sessionId = this.loginData['session_id'];
|
||||
this.gameWs.sendMsg('CMLogin', {
|
||||
this.gameConn.accountId = this.loginData['account_id'];
|
||||
this.gameConn.sessionId = this.loginData['session_id'];
|
||||
this.gameConn.sendMsg('CMLogin', {
|
||||
account_id: this.loginData['account_id'],
|
||||
session_id: this.loginData['session_id'],
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user