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::
Sending a message - 2010/02/02 11:59 Hi!

What i'm trying to do is send a message directly from server to client,here is my pseudo-doNode def in test module
Code:

      def doNode(selfnodeNamenodeclient):         if nodeName == 'sc':             for i in test.table:                 if i.id == node['text']:                     msg self.server.formatMessage('out', [], i.info)                  .....and server send message to MySelectedClient...(i wish heh)                                         break         return


is there any way to do it?
Any help would be greatly appreciated!
Cheers
  reply | quote
Re:Sending a message - 2010/02/02 12:18 To clarify it, node comes from client A, server do something with it, and then send node to client B
  reply | quote
Re:Sending a message - 2010/02/02 12:21 To clarify it, node comes from client A, server do something with it, and then send node to client B
  reply | quote
Re:Sending a message - 2010/02/04 18:49 Hi,

to send the node to another client you need Client A to send the server the nickname of client B.

and then you can do :
Code:

  nickName node.attrs['sendToClientWhosNickNameIs'] self.server.serverSendToClientByName(nickName,msg)



hope that helps
  reply | quote
Re:Sending a message - 2010/02/08 02:53
Code:

  self.server.serverSendToClientByName((node['attrs']['nick']),msg,'')



Thanks a lot :D, it work like a charm!
  reply | quote
::post new topic::