Wedge

Public area => The Pub => Features => Discussion démarrée par: dorje le 20 Avril 2011 à 16:11

Titre: Chat
Posté par: dorje le 20 Avril 2011 à 16:11
I don't know if this is the correct section, since at actual developement state[1] this thread is more a suggestion request. :)

So, I'm planning to write a chat client that is *inexpensive* for the server running wedge[2]. Inexpensive, that means ideal for forums that are executed on a shared hosting server. :) The system in my mind is very simple: I defined a simple protocol  - something like:

Code: [Sélectionner]
[id_member_from:id_member_to:time]hello! :)

where id_member_to can be * for messages dedicated to all chat members and a valid ID for something like IRC query.

The only thing I need now is a free service that in some way can accept requests and store such formatted strings[3]. So the entire system will be done in javascript, with load only on the client side.

What suggestion I need? Well... I only wanted to know if someone knows for such a free service around on the web. :)
 1. I've not started coding yet :P
 2. ok, right, I've to write it for SMF now, but I prefer to write Wedge in this post! ;)
 3. I don't know if I can handle this with gmail, for example, where the subject is the header and the body is the phrase - but I prefer something more simple, like a free postit server or... I don't know!
Titre: Re: Chat
Posté par: Arantor le 20 Avril 2011 à 16:49
The big factor is whether or not authentication is required for visibility. If it's not, there's a variety of things that might be suitable that can be just thrown in.

But if authentication is required, roundtrips to the server are inevitable.
Titre: Re: Chat
Posté par: dorje le 20 Avril 2011 à 16:55
Citation de Arantor le 20 Avril 2011 à 16:49
But if authentication is required, roundtrips to the server are inevitable.
But it will be enoug to load authentication credentials once. And... Yeah, I know that the credentials cannot be just stored in js. I'm just thinking how to solve that. :)
Titre: Re: Chat
Posté par: Arantor le 20 Avril 2011 à 16:57
Well, it's still going to be via a server one way or another... unless you can figure out how to do peer to peer communication in a browser in JS (which doesn't work unless both sides are configured to receive HTTP requests)
Titre: Re: Chat
Posté par: dorje le 20 Avril 2011 à 16:59
Citation de Arantor le 20 Avril 2011 à 16:57
Well, it's still going to be via a server one way or another... unless you can figure out how to do peer to peer communication in a browser in JS (which doesn't work unless both sides are configured to receive HTTP requests)
Ok, I explained not well I think. *Inexpensive* for the hosting server, not for the server providing the "string storing" service[1].
 1. Hmmm... What about blogger?
Titre: Re: Chat
Posté par: Arantor le 20 Avril 2011 à 17:12
There are so many problems that can be made through such a third party hosting; you're entirely relying on that third party never to change their API, authentication mechanism and so on, and it's particularly vulnerable because you'd have to supply the third party credentials to the Javascript which would have to live in the page all the time to keep requesting from the third party. Plus I can't think of a single non chat service that this wouldn't violate the TOS of.
Titre: Re: Chat
Posté par: Nao le 20 Avril 2011 à 17:27
Citation de Arantor le 20 Avril 2011 à 17:12
you're entirely relying on that third party never to change their API,
I'd like to use the opportunity to thank, from the bottom of my heart, all of the little f'ers who own video sites and changed their embed codes, breaking all sites embedding their stuff, and forcing me to update their embed code in Aeva Lite... Good thing I don't have to do that anymore.
And that's the simpliest of APIs :lol:
Titre: Re: Chat
Posté par: DoctorMalboro le 20 Avril 2011 à 22:40
That happens when they think that bugs justify changing the entire code of an API...
Titre: Re: Chat
Posté par: Arantor le 20 Avril 2011 à 23:16
Now why does that sound familiar?
Titre: Re: Chat
Posté par: dorje le 20 Avril 2011 à 23:24
Citation de Arantor le 20 Avril 2011 à 23:16
Now why does that sound familiar?
:eheh:
Titre: Re: Chat
Posté par: DoctorMalboro le 21 Avril 2011 à 00:41
Well, it sounds like the time twitter start using other protocols for their API.
Titre: Re: Chat
Posté par: dorje le 21 Avril 2011 à 08:07
Citation de Arantor le 20 Avril 2011 à 17:12
There are so many problems that can be made through such a third party hosting; you're entirely relying on that third party never to change their API, authentication mechanism and so on, and it's particularly vulnerable because you'd have to supply the third party credentials to the Javascript which would have to live in the page all the time to keep requesting from the third party.
I've got the answer: pastebin.
Citation de Arantor le 20 Avril 2011 à 17:12
Plus I can't think of a single non chat service that this wouldn't violate the TOS of.
And that's right, I've not considered that. :(

Ok, the project is in standby now: waiting the illumination! :thanks:
Titre: Re: Chat
Posté par: live627 le 21 Avril 2011 à 09:38
Pastebin? So your solution to a potentially changing third-party API is to use another third party?
Titre: Re: Chat
Posté par: dorje le 21 Avril 2011 à 09:40
No: to use a third party API that is relatively stable and very simple. :)

But nevermind, the TOS are very clear about not using pastebin that way...
Titre: Re: Chat
Posté par: live627 le 21 Avril 2011 à 09:44
That's the thing: I've never used pastebin... only breezed through it once half a year ago.
Titre: Re: Chat
Posté par: dorje le 21 Avril 2011 à 10:52
Citation de Arantor le 20 Avril 2011 à 16:57
Well, it's still going to be via a server one way or another... unless you can figure out how to do peer to peer communication in a browser in JS (which doesn't work unless both sides are configured to receive HTTP requests)
What about that?

http://labs.adobe.com/technologies/cirrus/
Titre: Re: Chat
Posté par: Arantor le 21 Avril 2011 à 13:53
Well, yes, it's fully peer to peer by Cirrus 2... but it requires Flash. If that works for you...
Titre: Re: Chat
Posté par: DoctorMalboro le 21 Avril 2011 à 20:50
If it requires flash all I know that it's going to be a major PITA.
Titre: Re: Chat
Posté par: Rustybarnacle le 22 Avril 2011 à 00:03
Steve just friended you on FB.  :)