fix crashes and failure to connect

Seems to be back to working now.
This commit is contained in:
Eric House 2022-01-03 17:40:23 -08:00
parent a9e44fe132
commit 38c80209c4
4 changed files with 6 additions and 3 deletions

View file

@ -408,6 +408,7 @@ game_makeFromInvite( MPFORMAL XWEnv xwe, const NetLaunchInfo* nli,
{
gi_setNPlayers( gi, nli->nPlayersT, nli->nPlayersH );
gi->boardSize = 15;
gi->traySize = 7;
gi->gameID = nli->gameID;
gi->dictLang = nli->lang;
gi->forceChannel = nli->forceChannel;

View file

@ -57,8 +57,8 @@ typedef struct _NetLaunchInfo {
XP_U32 gameID;
XP_UCHAR inviteID[32];
/* MQTT */
/* MQTT */
XP_UCHAR mqttDevID[17];
} NetLaunchInfo;

View file

@ -433,7 +433,9 @@ wasm_dutil_ackMQTTMsg( XW_DUtilCtxt* duc, XWEnv xwe, XP_U32 gameID,
const MQTTDevID* senderID, const XP_U8* msg,
XP_U16 len )
{
XP_ASSERT(0); /* implement me */
/* There's no native md5 hash in js, so not using this right now. Messages
* will go unack'd. */
XP_LOGFF("unimplemented");
}
static void

View file

@ -175,7 +175,7 @@ function jssetup(closure, dbg, devid, gitrev, now, noTabProc, focusProc, msgProc
'; total disconn: ', state.disconnTimeMS );
}
state.client = new Paho.MQTT.Client("eehouse.org", 8883, '/wss', devid);
state.client = new Paho.MQTT.Client("eehouse.org", 9001, '/wss', devid);
// set callback handlers
state.client.onConnectionLost = function onConnectionLost(responseObject) {