metarhia / impress

Enterprise application server for Node.js and Metarhia private cloud ⚡
https://metarhia.com
MIT License
966 stars 128 forks source link

Extract client-side JSTP and common lib #523

Closed tshemsedinov closed 8 years ago

tshemsedinov commented 8 years ago

We need server-side, client-side and common lib to reuse code.

tshemsedinov commented 8 years ago

I think it is better to place everything client side here: https://github.com/metarhia/Impress/blob/master/applications/example/static/js/impress.js

tshemsedinov commented 8 years ago

Old implementation should be removed: server side lib/impress.rpc.js and client-side api.rpc.* from applications/example/static/js/impress.js but after all JSTP functionality will be implemented. I think we need no such things like AJAX over RPC/WebSocket (allowing to call HTTP methods in emulation using Impress RPC calls).