Home Identifier Source Test Repository
import IsoProxy from 'isoproxy/src/isoproxy.js'
public class | source

IsoProxy

Isomorphic API Proxy

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

setImplementations(implementations: Object)

public

setInterfaces(interfaces: Object)

Public Constructors

public constructor(opts: Object) source

Params:

NameTypeAttributeDescription
opts Object
opts.root string

Root url path, that is beginning with "/" and NOT end with "/".

opts.isServer boolean

Server mode or not.

Public Members

public api: Object source

Example:

{math: {add: function() { isomorphic_blackbox(); }}}

public routes: Object source

Example:

{"/api/math": function processJsonrpcRequest(jsonrpcRequest) { ... }}

Public Methods

public setImplementations(implementations: Object) source

Params:

NameTypeAttributeDescription
implementations Object

public setInterfaces(interfaces: Object) source

Params:

NameTypeAttributeDescription
interfaces Object