http://www.laszlosystems.com/lps-3.2/docs/reference/index.html?connectiondatasource.html
says it extends datasource (not HTTPDatasource). It's better than an
XML Socket server since it works thru firewalls. Basically analogous to
the Flash Media Server tunneling protocol.
There is a sendMessage API which appends a node in a dataset which is a
child of the datasource.
In the chat app, line 153:
canvas.myconnection.sendMessage("*", message, "message");
will modify the message dataset (line 63) on all connected clients.
The new PersistentConnection will not have any API changes, they are
just working on improving scalability :)
Sarah
On Mon, May 22, 2006 at 3:10 PM, Sebastian Wagner wrote:
yes thats what i meant.
But i have been confused by the api of the app too.
Is the LzConnection-Class _real_ Persistent? Is it a real XMLSocket
connection? Docs say it extends HTTPDatasource->Datasource and it has a
attribute named " heartbeat" docs say it is called by the "server"
it's a little bit confusing cause from my point there is a timer in the
client ( LzConnection-Class) :
" _root.LzTimer.resetTimer(this.__LZtimeoutDel, this.timeout) " (-->
LzConnection.prototype.__LZconnect)
soo ... this is a just a Dateset with is refreshing every 5 sec?
If so no --> chance for pushing message from server to clients. There
has been a thread about Persistent Connection some weeks ago... there it
was mentioned that a new "PersitentConnection" will be released.
regards
sebastian
2006/5/22, Sarah Allen < [EMAIL PROTECTED]>:
yes, I meant like the chat demo app:
http://www.openlaszlo.org/lps-latest/demos/chat/chat.lzx
ok, so it's not pretty (something wonky in the UI layout) and whoever
wrote it didn't believe in comments... is that was you meant by
confused? :)
On Mon, May 22, 2006 at 1:02 PM, Sebastian Wagner wrote:
hi,
you mean like the build in chat demo
http://www.openlaszlo.org/lps-latest/demos/chat/chat.lzx
which seems to be a bit *confused-app* :-)
or using PersistantConnection/XMLSocket to connect to third party
resource like red5 et cetera?
regards
sebastian
2006/5/22, Sarah Allen < [EMAIL PROTECTED] <> >:
I wonder for a simple chat application whether folks should just use the
persistent connection already in OpenLaszlo.
Thoughts anyone?
On Mon, May 22, 2006 at 4:38 AM, Sebastian Wagner wrote:
hi,
The simple Chat demo in Red5 uses Shared Objects. I reviewed the Red5
example and was able to make some SharedObject in OpenLaszlo to get the
Red5ChatDemo running.
http://appserver.webbase-design.de/lps-latest/streaming/branch/test-red5Sampler.lzx
I'm using the latest stable lps-3.3.
See the necessary code for some ideas about SharedObjects in OpenLaszlo.
In the rtmpconnection.lzx I also commented some code.
For SharedObjects there is a Method called "onSync" so there is no need
to for "__resovle" stuff i think.
regards
sebastian
2006/5/22, 李文华 < [EMAIL PROTECTED]<> >: Hi, Sebastian Wagner:
Can u tell me how can I do if I want implement real-time text chat use
openlaszlo(UI) and red5(server),and I see all your sample code is for
stream communication, the same for text communication? And I find use
flash 8 pro can done this work,and red5 sample as code also desc how can
we do , but for openlaszlo what should we do?
Pls reply me ,thks a lot!!
Best regards!!
--
Sebastian Wagner
http://www.webbase-design.de
http://www.laszlo-forum.de
Bleichstraße 92
75173 Pforzheim
Tel.: 0177-7341829
Home: 07231-417456
[EMAIL PROTECTED] <>
--
Sebastian Wagner
http://www.webbase-design.de
http://www.laszlo-forum.de
Bleichstraße 92
75173 Pforzheim
Tel.: 0177-7341829
Home: 07231-417456
[EMAIL PROTECTED]
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev