JSPM

  • Created
  • Published
  • Downloads 1186
  • Score
    100M100P100Q113234F
  • License GPL-2.0

Ice for JavaScript runtime

Package Exports

  • ice
  • ice/src/Ice/BasicStream
  • ice/src/Ice/Identity

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Internet Communications Engine (Ice)

Ice is a comprehensive RPC framework with support for C++, .NET, Java, Python, JavaScript and more.

Install

$ npm install ice --save

Usage

var Ice      = require('ice').Ice;
var Glacier2 = require('ice').Glacier2;
var IceStorm = require('ice').IceStorm;
var IceGrid  = require('ice').IceGrid;

var communicator = Ice.initialize(process.argv);
var proxy = communicator.stringToProxy("hello:tcp -h localhost -p 10000");

The npm package also includes the browser version of Ice for JavaScript. Add the necessary <script> tags to your html to include the Ice for JavaScript components you require. node_modules must server out from the root directory of your web server.

<script src="/node_modules/ice/lib/Ice.js"></script>
<script src="/node_modules/ice/lib/Glacier2.js"></script>
<script src="/node_modules/ice/lib/IceStorm.js"></script>
<script src="/node_modules/ice/lib/IceGrid.js"></script>
<script type="text/javascript">
    var communicator = Ice.initialize();
    var proxy = communicator.stringToProxy("hello:ws -h localhost -p 10002");
</script>

Minified versions are available with the .min.js extension.

Documentation

See the Ice Documentation.

Slice2js Compiler

To compile Slice files to JavaScript see the following:

Demos

A collection of demos for Ice for JavaScript (and other language mappings) can be found here.