Eric House
daf5894d79
call new web api to ack mqtt messages
...
This is toward debugging. Not sure it'll be use to add functionality yet.
2021-04-19 07:04:58 -07:00
Eric House
92200779ac
log connType in nli
2021-04-07 21:40:20 -07:00
Eric House
d74161958e
cleanup: remove dead and use new code
2021-03-28 20:27:24 -07:00
Eric House
2a20caa6d7
fix breakage caused by merge
2021-03-27 11:00:06 -07:00
Eric House
64ff2e5f69
Merge branch 'android_branch' into wasm
2021-03-27 10:27:14 -07:00
Eric House
7a7a2db6ce
enable chat (without history)
2021-03-24 15:58:25 -07:00
Eric House
561c5c9eb1
cleanup
2021-03-22 10:43:34 -07:00
Eric House
e3ba122ca0
fix to compile with XWFEATURE_RELAY undefined
...
Didn't change the stream format. That will wait!
2021-03-19 18:51:34 -07:00
Eric House
b1532f19a4
move getDict from dutil to util
...
It's in the context of a game, and we might want info about the game
when notifying the user. For wasm, though, I just download after failure
to open. User has to try again to open the game. Good enough for now
since missing a wordlist shouldn't happen if you're not me changing
where they're stored.
2021-03-19 17:27:17 -07:00
Eric House
87621c3b51
fix compile
2021-03-19 17:26:48 -07:00
Eric House
e86626d7be
don't crash if remote doesn't support chat
2021-03-19 14:30:17 -07:00
Eric House
1aa3ddcde0
cleanup and tweaks
2021-03-19 14:30:17 -07:00
Eric House
585f55c040
use notifications and other tweaks
2021-03-19 14:29:49 -07:00
Eric House
bf88c000b7
fix mempool tracking bug
2021-03-19 14:29:49 -07:00
Eric House
f3b76da8e1
add more info to game "buttons"
...
Toward a games-list substitute. New game_summarize method will get
fleshed out and eventually replace what's in jni?
2021-03-19 14:29:48 -07:00
Eric House
b0cc6dd744
clear name on delete; remove logging
2021-03-19 14:29:48 -07:00
Eric House
829242c9bb
fix to deal with failed downloads
2021-03-19 14:29:48 -07:00
Eric House
52b1300d90
cleanup; remove dead code
2021-03-19 14:29:48 -07:00
Eric House
970c2f6f9a
make android compile/run with wasm changes
2021-03-19 14:29:20 -07:00
Eric House
34aee3d7d0
add remaining langs to code-to-lang table
2021-03-19 14:29:20 -07:00
Eric House
f0d8a71deb
split dict faces using js so utf8 chars are ok
...
As with java, the platform knows utf-8 better than vanilla C, so use a
JS inlined function to split a binary stream into its "face" components.
2021-03-19 14:29:20 -07:00
Eric House
567c3dbf9e
show mempool stats (DEBUG builds)
2021-03-19 14:27:04 -07:00
Eric House
4937d13273
use indexeddb for storage
2021-03-19 14:27:04 -07:00
Eric House
2a6931fdcf
add and start using indexeddb via emscripten APIs
...
Replace a couple of load/store actions with new APIs that do so
asynchronously (using indexeddb underneath, via emscripten APIs.)
Required restructuring how app starts. More changes to come. The idea is
to replace wordlist storage: this'll keep 'em smaller and not require
conversion to string.
2021-03-19 14:27:04 -07:00
Eric House
d5e7dc4c97
game from a downloaded wordlist works!!!!
2021-03-19 14:27:04 -07:00
Eric House
afc3ff156e
make game ask for dicts when needed
...
It's awkward for platform code to create a dictionary prior to opening a
game whose data contains the information about what dict to open. So add
a dutil method to fetch a dict, and call it from inside game opening
code. Makes linux code better at least.
2021-03-19 14:27:04 -07:00
Eric House
7924c046d6
fix linux compile
2021-03-19 14:27:04 -07:00
Eric House
06b530c443
add notion of index to storage
...
I'm heading toward being able to know what all the games are by how
they're stored in a xplatform way. This is a start. Adding a second key
to storage, and looking at grouping everything where one key or the
other matches.
2021-03-19 14:27:04 -07:00
Eric House
61be81cf1a
invite known players
2021-03-19 14:27:04 -07:00
Eric House
534e245048
change load-from-storage to not require free()
2021-03-19 14:27:04 -07:00
Eric House
41cd3d8f39
open game to receive message
2021-03-19 14:27:04 -07:00
Eric House
23cb7bb85d
unsigned->signed to fix drawing garbage in empty tiles
2021-03-19 14:27:04 -07:00
Eric House
74109ce172
fix to send after connect
2021-03-19 14:27:04 -07:00
Eric House
7dc949fb38
choose font sizes to fit
...
Make on demand rather than guessing. Only wind up with six or so, so the
linear search is probably ok.
2021-03-19 14:27:04 -07:00
Eric House
96829b5478
fix so release build builds
...
without MEMDEBUG defined that is
2021-03-19 14:27:04 -07:00
Eric House
880bff747d
use js runtime for timers too
2021-03-19 14:26:18 -07:00
Eric House
c57471364f
get URL-encoded invitation receipt working
2021-03-19 14:26:18 -07:00
Eric House
4612ca70c7
snapshot: message exchange mostly works
2021-03-19 14:26:18 -07:00
Eric House
e3814bf0eb
snapshot: sends message to inviter
2021-03-19 14:26:18 -07:00
Eric House
9bc72d0745
move stream storage into super
2021-03-19 14:26:18 -07:00
Eric House
ec9570ab81
improve drawCell()
2021-03-19 14:26:18 -07:00
Eric House
d620461574
fix so all compile
2021-03-19 14:26:18 -07:00
Eric House
633896292a
snapshot: drawing empty board
2021-03-19 14:26:18 -07:00
Eric House
b62ab69799
add missing file
2021-03-19 14:26:18 -07:00
Eric House
d5546b484d
cleanup (mostly non-DBG compile errors)
2021-03-19 13:03:39 -07:00
Eric House
3f6f16c2f4
add script to print comms msg exchange details
2021-03-19 12:50:32 -07:00
Eric House
f335ea7ad9
remove or tweak logging
2021-03-19 12:50:28 -07:00
Eric House
5fa44e54fa
remove unneeded .h file
2021-03-19 12:50:23 -07:00
Eric House
f9e1deabfc
don't include dict tiles/values in initial server msg
...
There's code on all platforms to force user to have dict prior to
opening a game or responding to an invitation. "Empty" dict play hasn't
made sense in a long time.
2021-03-19 12:50:19 -07:00
Eric House
ca88d9c0bf
backout ack change for now
2021-03-12 07:16:28 -08:00