10713 Posts in 2391 Topics by 1763 members
Page: 1 2
|Go to End||Next >|
27 January 2009 at 5:48am Last edited: 27 January 2009 5:57am
i'm working on a chat (or instant messaging) module/widget for my http://micromusic.net project. is someone interested in such a module? you can see a demo here:
log in as
best in 2 different browsers (or IE) to check the messaging functionality. Firefox tabs use the same session!
my plan is to add the chat module to the Silverstripe module library, but i need to clean up some code first.
if you are interested in helping me out with implementing more functionality like:
- preferences settings
- blocking user functionality
- chat functionality on the ChatPage
- friends list
or debugging the code, let me know.
all feedback is welcome anyway!!!
27 January 2009 at 6:26am
Very cool. Great idea. I was thinking about this yesterday. Is that really how chat applications work on the web? With AJAX? There must be some other secret, because on sites like Facebook and Gmail, the response time is nearly instantaneous.
27 January 2009 at 11:47am Last edited: 27 January 2009 11:52am
i cant really think of another way than refreshing the content of the widget every 10s or so by using AJAX technology.
i'm using a simular but simpler "chat system" on micromusic.net for about 10 years already, and it worked pretty well so far. of course you can write more sophisticated code which will have some dynamic refresh periods depending on the activity of the user to make the chat more responsive or - the other direction - save some web server resources while you're not chatting to someone etc.
if you're interested in what facebook is doing exactly you should install the "Live HTTP Headers" Add-on in Firefox to check the requests/responses AJAX is sending and receiving.
28 January 2009 at 10:00am
for this purpose there is "BOSH" - http://xmpp.org/extensions/xep-0124.html
BOSH is "Bidirectional-streams Over Synchronous HTTP", a technology for two-way communication over the Hypertext Transfer Protocol (HTTP). BOSH emulates many of the transport primitives that are familiar from the Transmission Control Protocol (TCP). For applications that require both "push" and "pull" communications, BOSH is significantly more bandwidth-efficient and responsive than most other bidirectional HTTP-based transport protocols and the techniques known as AJAX. BOSH achieves this efficiency and low latency by avoiding HTTP polling, yet it does so without resorting to chunked HTTP responses as is done in the technique known as Comet. To date, BOSH has been used mainly as a transport for traffic exchanged between Jabber/XMPP clients and servers (e.g., to facilitate connections from web clients and from mobile clients on intermittent networks). However, BOSH is not tied solely to XMPP and can be used for other kinds of traffic, as well.
28 January 2009 at 10:45am
OK, that looks nice. but as far as i understand you need a special server to establish such a bidirectional BOSH connection?
12 February 2009 at 12:44am
social network capabilities are something i'm sorely missing in the otherwise really great silverstripe framework.
there are some posts in the forum talking about a module to achieve this, but unfortunately there are no results on this.
i'd really love to do something alike for a current project, but i guess time&money will hold me back (as most of the other developers out there).
nevertheless i'm interested in what you've done here (looking nice!) - maybe you want to place your code somewhere for download
all the best
12 February 2009 at 12:48am
I'll definitely publish the source code, i just need to clean out the whole thing in th next few days. Hope to have it ready next week. And hopefully the module/widget will be helpfull for you all and someone will try and help to improve it...
More about it soon here!!!
26 January 2010 at 5:57pm
I tried to install your chat module on my site (SS version 2.3.1) but it didnÂ´t work. First I get a template error. When IÂ´m dragging the chat box widget to my blog sidebar I get the following error message:
Fatal error: Call to undefined method Page::currentlyonline() in /var/www/1000/musik-kaiserslautern.de/htdocs/mm_chat/code/ChatPage.php on line 275
My Page.php doesnÂ´t have a method currentlyonline().
Is this problem easy to fix? If not I would create a chat myself.
Page: 1 2
|Go to Top||Next >|