the-server
HTTP/RPC Server of the-framework
Installation
$ npm install the-server --save
Usage
'use strict' const React = const theServer = const Ctrl Stream = theServerconst fs = const createElement: c = React ;async { // Define RPC Controller Class async { const session = this const cart = {} } = session cartname = cartname || 0 + amount sessioncart = cart async { const session = this const cart = {} } = session /* ... */ } } // Define real time event handling stream async * { let count = thisparamscount || 100 while count > 0 count: thiscount thiscount-- } const server = await server }
API Guide
License
This software is released under the MIT License.