I tried phpchat but dint have enough luck.
The orbited is running on port 8000, I can see it from about page.
The users.txt is getting updated with the users. I just cannot send
any messages. Messages are being sent even if i hit send.
How to debug it?
Thanks Michael,
http://127.0.0.1:8000/chat.php is not loading and its showing loading
forever. I think I am missing something somewhere.
I have placed the phpchat files in web root of apache. where should I
place these files?
Do we need Apache to run Orbited? sorry if I sound too stupid!! but I
am very new to comet and orbited :)
http://127.0.0.1:8000/chat.php - I can only see a blank page !
The following is the log on Orbited command prompt window when I
access orbit.html
2007-11-17 19:40:57,015 ACCESS PROXY /orbit.html -> 127.0.0.1:80
[ 127.0.0.1
]
2007-11-17 19:40:57,030 - Application - CRITICAL - <type
'exceptions.NameError'>
:global name 'ProtocolError' is not defined File "c:\python25\lib
\site-pac
kages\orbited-0.2.0-py2.5.egg\orbited\http\proxy.py", line 244, in
state_pre_bod
y
File "c:\python25\lib\site-packages\orbited-0.2.0-py2.5.egg\orbited
\app.py", l
ine 70, in start
event.dispatch()
File "event.pyx", line 262, in event.dispatch
File " event.pyx", line 116, in event.__simple_callback
File "c:\python25\lib\site-packages\orbited-0.2.0-py2.5.egg\orbited
\http\proxy
.py", line 116, in read_ready
self.buffer.recv(data)
File "c:\python25\lib\site-packages\orbited- 0.2.0-py2.5.egg\orbited
Thank you Michael,
I have tried for almost an hour to find out how to disable this in
apache server. but dint have luck.
do you know how to do this?
I found it interesting. They asked whether it is required to open up
multiple connections to the server, one for each channel desired
(where "channel" here is a pub/sub channel, be it a chatroom channel
or anything else). The answer is no, not necessarily; it depends on
your pub/sub framework. You just need to make sure that you publish on
the users accordingly, whether they have one or two connections open,
or one per channel.
This is a topic that requires our attention, as browsers often do not
allow more than 2 HTTP connections open per subdomain...
The way to implement it with one polling connection and multiple
channels is to make the client open up one long-polling connection to
a specific orbited RI (with a specially crafted "request URI" part),
then publish to the same URL for more than one channels (multiple
channels per user), and to different URLs for the same channel
(multiple users per channel).
I'm currently working on a PHP script that will probably allow this,
so check back with me if you need more details about the
implementation.
Or perhaps heyadayo could have an insightful suggestion of why I'm
completely wrong about this approach?
Thanks,
Dionysis.
Regarding Chandra's earlier question on #orbited on IRC...
I found it interesting. They asked whether it is required to open up
multiple connections to the server, one for each channel desired
(where "channel" here is a pub/sub channel, be it a chatroom channel
or anything else). The answer is no, not necessarily; it depends on
your pub/sub framework. You just need to make sure that you publish on
the users accordingly, whether they have one or two connections open,
or one per channel.
This is a topic that requires our attention, as browsers often do not
allow more than 2 HTTP connections open per subdomain...
The way to implement it with one polling connection and multiple
channels is to make the client open up one long-polling connection to
a specific orbited RI (with a specially crafted "request URI" part),
then publish to the same URL for more than one channels (multiple
channels per user), and to different URLs for the same channel
(multiple users per channel).
I'm currently working on a PHP script that will probably allow this,
so check back with me if you need more details about the
implementation.
Or perhaps heyadayo could have an insightful suggestion of why I'm
completely wrong about this approach?