Coder Social home page Coder Social logo

feathersui / feathersui-rpc-services Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 641 KB

A port of the RPC service classes from Apache Flex (formerly Adobe Flex) to Feathers UI for Haxe and OpenFL

Home Page: https://api.feathersui.com/rpc-services/

License: Apache License 2.0

Haxe 100.00%
feathers-ui openfl haxe adobe-flex apache-flex

feathersui-rpc-services's Introduction

RPC Services for Feathers UI

A port of the RPC service classes from Apache Flex (formerly Adobe Flex) to Feathers UI for Haxe and OpenFL.

Contains the following service classes:

  • HTTPService: Load data from a URL as XML, simple string text, URL variables, or JSON.
  • RemoteObject: Share the same typed objects on server and client using binary AMF.

Contains the following low-level messaging classes:

  • Producer: Send messages to a destination.
  • Consumer: Subscribe to messages from a destination.

Compatibility Notes

RemoteObject

Instead of adding [RemoteClass(alias="com.example.MyClass")] metadata to a class, call the openfl.Lib.registerClassAlias() function to register each type when the application initializes.

Lib.registerClassAlias("com.example.MyClass", MyClass);

HTTPService

The resultFormat property includes two new formats:

  • RESULT_FORMAT_JSON: Parses the server response as JSON, returning an anonymous structure. Supported on all targets.
  • RESULT_FORMAT_HAXE_XML: Returns an instance of Haxe's Xml class. Supported on all targets.

The RESULT_FORMAT_E4X and RESULT_FORMAT_XML values will throw an exception on most targets. These formats are supported on the flash and air targets only. Using the new RESULT_FORMAT_HAXE_XML instead is recommended.

Unsupported Service Types

The following services have not yet been ported to Haxe and Feathers UI.

  • WebService: Provides access to SOAP-based web services on remote servers.
  • HTTPMultiService: Represents a collection of HTTP operations.

If you need either of these service types, please create a feature request.

Minimum Requirements

  • Haxe 4.1
  • OpenFL 9.2
  • Feathers UI 1.0

Installation

Run the following command in a terminal to install feathersui-rpc-services from Haxelib.

haxelib install feathersui-rpc-services

Project Configuration

After installing the library above, add it to your OpenFL project.xml file:

<haxelib name="feathersui-rpc-services" />

Documentation

feathersui-rpc-services's People

Contributors

joshtynjala avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.