Packagefin.desktop.connection
Classpublic class DesktopConnection
InheritanceDesktopConnection Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined By
  
DesktopConnection(uuid:String, host:String, port:String, onReady:Function, onError:Function = null)
DesktopConnection
  
[static]
DesktopConnection
  
sendMessage(action:String, payload:Object = null, onMessage:Function = null, onError:Function = null):int
DesktopConnection
Constructor Detail
DesktopConnection()Constructor
public function DesktopConnection(uuid:String, host:String, port:String, onReady:Function, onError:Function = null)



Parameters
uuid:String
 
host:String
 
port:String
 
onReady:Function
 
onError:Function (default = null)
Method Detail
getInstance()method
public static function getInstance():DesktopConnection

Returns
DesktopConnection
sendMessage()method 
public function sendMessage(action:String, payload:Object = null, onMessage:Function = null, onError:Function = null):int

Parameters

action:String
 
payload:Object (default = null)
 
onMessage:Function (default = null)
 
onError:Function (default = null)

Returns
int