Wechat Mini Game Battle system

< H2 > problem source < / H2 >

recently Wechat Mini Game is very popular in moments; as an engineer, you can"t be left behind; start research; don"t use the development engine to develop; just the original set

< H2 > problem points < / H2 >

play Wechat; just for fission; see that many Mini Game have a war system; that is, invite friends; then An invites Bash B to join the game; A"s mobile phone will also provide all kinds of information about Synchronize B players; both sides can get information from Synchronize; check Mini Game"s API; and see socket; but can"t understand it; whether this needs a server in the end; player A needs to operate it; send it to the server through socket. Then the server sends it to B"s mobile phone?

< H2 > questions < / H2 >

ask the forum god to be able to solve the transmission process in the middle; it"s better to have a picture of the kind ~

.

first understand the principle of socket. How the socket client and server interact


check it out for yourself ~

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b334e1-4eae9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b334e1-4eae9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?