mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
fix crashes and failure to connect
Seems to be back to working now.
This commit is contained in:
parent
a9e44fe132
commit
38c80209c4
4 changed files with 6 additions and 3 deletions
|
@ -408,6 +408,7 @@ game_makeFromInvite( MPFORMAL XWEnv xwe, const NetLaunchInfo* nli,
|
||||||
{
|
{
|
||||||
gi_setNPlayers( gi, nli->nPlayersT, nli->nPlayersH );
|
gi_setNPlayers( gi, nli->nPlayersT, nli->nPlayersH );
|
||||||
gi->boardSize = 15;
|
gi->boardSize = 15;
|
||||||
|
gi->traySize = 7;
|
||||||
gi->gameID = nli->gameID;
|
gi->gameID = nli->gameID;
|
||||||
gi->dictLang = nli->lang;
|
gi->dictLang = nli->lang;
|
||||||
gi->forceChannel = nli->forceChannel;
|
gi->forceChannel = nli->forceChannel;
|
||||||
|
|
|
@ -57,8 +57,8 @@ typedef struct _NetLaunchInfo {
|
||||||
|
|
||||||
XP_U32 gameID;
|
XP_U32 gameID;
|
||||||
XP_UCHAR inviteID[32];
|
XP_UCHAR inviteID[32];
|
||||||
/* MQTT */
|
|
||||||
|
|
||||||
|
/* MQTT */
|
||||||
XP_UCHAR mqttDevID[17];
|
XP_UCHAR mqttDevID[17];
|
||||||
} NetLaunchInfo;
|
} NetLaunchInfo;
|
||||||
|
|
||||||
|
|
|
@ -433,7 +433,9 @@ wasm_dutil_ackMQTTMsg( XW_DUtilCtxt* duc, XWEnv xwe, XP_U32 gameID,
|
||||||
const MQTTDevID* senderID, const XP_U8* msg,
|
const MQTTDevID* senderID, const XP_U8* msg,
|
||||||
XP_U16 len )
|
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
|
static void
|
||||||
|
|
|
@ -175,7 +175,7 @@ function jssetup(closure, dbg, devid, gitrev, now, noTabProc, focusProc, msgProc
|
||||||
'; total disconn: ', state.disconnTimeMS );
|
'; 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
|
// set callback handlers
|
||||||
state.client.onConnectionLost = function onConnectionLost(responseObject) {
|
state.client.onConnectionLost = function onConnectionLost(responseObject) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue