• Log in or sign up for an account here: https://www.sythe.org/login

Sythe Chat!

Status
Not open for further replies.
Supporting Business
Discord Voice
Poképedia
Who did this to my freakin' car!
Dat Boi
Dolan Duck
Dolan Trump
I'm LAAAAAAAME
Live Free or Die
Mew
Mewtwo
PHP Shit Show 2k26
Poké Prizebox
Rust Player
Sythe Awards 2016 Winner
Sythe Awards 2017 Winner
Sythe Awards 2019 Winner
Tier 3 Prizebox
Toast Wallet User
Won't see adoption until it's built-in to the page, like zopim/facebook chat is.

It's not even that hard to do, just restyling and then adding the JS to the header, dunno why it's not done already, I think that should be the focus for now.

It's more complicated than it seems. For example, if you have five pages open do you have five separate connections to the chat system? No? Well then you have to use intercom or similar to proxy chat messages around, and one of the active tabs has to host the main connection. But then you have more trouble because the background tabs don't update reliably on modern browsers (to save CPU).

I'm not saying its impossible but until there is widespread adoption of chat, I'm not going to burden every page of the site with it.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
It's more complicated than it seems. For example, if you have five pages open do you have five separate connections to the chat system? No? Well then you have to use intercom or similar to proxy chat messages around, and one of the active tabs has to host the main connection. But then you have more trouble because the background tabs don't update reliably on modern browsers (to save CPU).

I'm not saying its impossible but until there is widespread adoption of chat, I'm not going to burden every page of the site with it.

Couldn't you just write your own (or find one) asynchronous chat protocol? Just stick them in a DB and stuff. Then you don't have to deal with connections and stuff.
 
Supporting Business
Discord Voice
Poképedia
Who did this to my freakin' car!
Dat Boi
Dolan Duck
Dolan Trump
I'm LAAAAAAAME
Live Free or Die
Mew
Mewtwo
PHP Shit Show 2k26
Poké Prizebox
Rust Player
Sythe Awards 2016 Winner
Sythe Awards 2017 Winner
Sythe Awards 2019 Winner
Tier 3 Prizebox
Toast Wallet User
Couldn't you just write your own (or find one) asynchronous chat protocol? Just stick them in a DB and stuff. Then you don't have to deal with connections and stuff.

The protocol isn't the issue. The issue is exactly mirroring the same chat client on several tabs without overuse of resources both on the client end and on the server end.

Basically: Either every tab has a "connection" (be that a long poll, a series of short polls, a websocket, or whatever), OR there is a single "connection" that is shared somehow between the tabs. (I put connection in quotes because I don't necessarily mean a direct TCP connection but rather a means of obtaining and sending data to the server.) The second option is far preferable. Many users have dozens of sythe tabs open at the same time. In addition to the resource overhead on the server, browsers limit the number of simultaneous connections to the same server. The chat clients also have to sync perfectly so that a message sent in one tab will appear as a message sent in the others.

As I said before it's not impossible, just tricky. I have a partial solution using intercom.js already written up. If enough people start using chat I'll do some more work on it.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
The protocol isn't the issue. The issue is exactly mirroring the same chat client on several tabs without overuse of resources both on the client end and on the server end.

Basically: Either every tab has a "connection" (be that a long poll, a series of short polls, a websocket, or whatever), OR there is a single "connection" that is shared somehow between the tabs. (I put connection in quotes because I don't necessarily mean a direct TCP connection but rather a means of obtaining and sending data to the server.) The second option is far preferable. Many users have dozens of sythe tabs open at the same time. In addition to the resource overhead on the server, browsers limit the number of simultaneous connections to the same server. The chat clients also have to sync perfectly so that a message sent in one tab will appear as a message sent in the others.

As I said before it's not impossible, just tricky. I have a partial solution using intercom.js already written up. If enough people start using chat I'll do some more work on it.

Are you able to make use of a shared local cache to sync up all the different instances? Then you can just talk to one of the tabs and make the rest sync through the cache?
 
Supporting Business
Discord Voice
Poképedia
Who did this to my freakin' car!
Dat Boi
Dolan Duck
Dolan Trump
I'm LAAAAAAAME
Live Free or Die
Mew
Mewtwo
PHP Shit Show 2k26
Poké Prizebox
Rust Player
Sythe Awards 2016 Winner
Sythe Awards 2017 Winner
Sythe Awards 2019 Winner
Tier 3 Prizebox
Toast Wallet User
Are you able to make use of a shared local cache to sync up all the different instances? Then you can just talk to one of the tabs and make the rest sync through the cache?

Yes this is exactly the model I am talking about. Except I use intercom.js which makes use of whatever type of local shared data is available.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
would it be possible to get sythe chat to dock into the webpage somehow?

i really hate having to keep tabbing over to it =\

That's the whole issue. Having it in every page makes a lot of connections and is slow and stuff. Richard is working on something for that.
 
Live Streamer
PHP Shit Show 2k26
Two Factor Authentication User
That's the whole issue. Having it in every page makes a lot of connections and is slow and stuff. Richard is working on something for that.

why i suggested a docking feature, so the one client transfers over to the next page, granted this would cause it to reload it time you change pages im sure i t could work like how the facebook system works.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
So I've got single click To open a private conversation working. I just need to pack it in as a patch and I'll send it to Richard. I already sent him a fix for the pm command.
 
Surely there is an 'out of the box' solution for the current version of vb you are running?
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Take away the "auto-scrolling" that it had whenever a new message comes.

I tried to do this and I can't. Its due to some stupid DOM crap. Matthew will have to look into it.

I've fixed the PM command so it lets you know what you have PM'd. I'm going to submit that to Richard when I have time.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Ok. I lied. I got auto-scrolling off. Now received PMs never scroll but I'll fix that soon.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Is there anything people want first?
 
Status
Not open for further replies.
duelarena.gg
Back
Top