Prev | Current Page 794 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The path used to locate a proper method is everything in
between cnx and call . The call() method accepts an Array < Dynamic > of arguments that is passed
to the server method and returns the result as a Dynamic value. If the method is used improperly the
execution can fail silently or notify a runtime error to conform to the platform used. As described later in
the ??? Proxy Objects ??? section, proxies can elegantly solve the problem of having untyped arguments and
return value.
Table 15-2
Client Platform Server Platform Static Class/Method to Create the Connection Async
Flash AMF Server AsyncConnection.amfConnect() Yes
Flash Socket Server SocketConnection.socketConnect() Yes
Flash HTTP Server AsyncConnection.urlConnect() Yes
JavaScript Socket Server SocketConnection.socketConnect() Yes
JavaScript HTTP Server AsyncConnection.urlConnect Yes
JavaScript HTTP Server Connection.urlConnect() No
Neko Socket Server NekoSocketConnection.socketConnect() No
Neko HTTP Server AsyncConnection.urlConnect() Yes
Neko HTTP Server Connection.


Pages:
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806