You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links







Actionscript for Multiplayer games

 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
Can't get simple chat running - 2009/06/20 08:56 Hello!

I have weird problem - tried to get live demo chat and I can't send messages.

When I try to send, when I'm joined to XXX:

<m r="XXX" >Hello!</m>

All clients receive answer character by character, not full XML answer, but many requests, all containing only one character (also white-spaces). If combine those characters together, It seems like the message needed.

Anyone experienced something like that?

I tried to use demo chat provided in downloads section and also tried to write simple AS3 on my own - same result.
  reply | quote
Re:Can't get simple chat running - 2009/09/24 14:53 with python 2.6 there is a bug in palabreServer.py
i made some changes in function formatMessage(self,nodeName,attrs,texte) and seems to work fine:


def formatMessage(self,nodeName,attrs,texte):
"""
Returns the XML string of the message
"""

xml = "<"+nodeName+" "
for p in attrs:
if p != "c" and p != "toclient" and p != "toroom" and p !="b" and p != "back":
# @TODO BUG with the DOUBLE QUOTE CHAR
# HOW DO I ESCAPE THIS ????
val = str(attrs[p])
logger.info('val:'+ val)

if val.find('"') and not val.find("'"):
xml += str(p)+'=''+val.replace('"','"')+'''
else:
xml += str(p)+"='"+val.replace('"','"')+"'"

xml += ">"+texte+"</"+nodeName+">"

return xml
  reply | quote
Re:Can't get simple chat running - 2009/09/24 14:55 you can remove
logger.info("val:"+val)

from my code,

hi,
pier
  reply | quote
::post new topic::