Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2018-07-27 11:59:22

Anatoly
Guest

Does Javascript PIO has support for case "add" when player already ...

... in room?

#2 2018-07-27 12:06:02, last edited by LukeM (2018-07-27 12:06:59)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Does Javascript PIO has support for case "add" when player already ...

Not quite sure what you mean, but the answer is almost definately yes. All the message stuff is done serverside, the client is just a client for receiving those messages, so the different versions of the client act pretty much the same.

Offline

Wooted by:

#3 2018-07-27 12:41:22, last edited by Vinyl Melody (2018-07-27 12:42:19)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Does Javascript PIO has support for case "add" when player already ...

I think Anatoly meant if the add message contains "yup this user was here before the player/bot joined", afaik you cant.

P.S. Just like LukaM said, all the clients gets treated the same, so you don't have to specify what language you're usig when it comes to PIO messages


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#4 2018-07-27 12:48:22, last edited by LukeM (2018-07-27 12:49:22)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Does Javascript PIO has support for case "add" when player already ...

Vinyl Melody wrote:

I think Anatoly meant if the add message contains "yup this user was here before the player/bot joined", afaik you cant.

Ah ok, I think its at least fairly safe to just say that add messages before init2 are players already in the room, and add messages after are people joining the room, although there might be a small chance that someone joining at the right time could be put in the wrong group, although I'm not sure how much that would matter... (any add message after init2 is definitely someone who joined after you, but there might be a small chance that add messages before init2 joined slightly after you)

Offline

LukeM1532692102716402

Board footer

Powered by FluxBB

[ Started around 1732211378.217 - Generated in 0.034 seconds, 13 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]