samchon / tgrid

TypeScript RPC (Remote Procedure Call) for WebSocket and Worker protocols
https://tgrid.com/
MIT License
141 stars 19 forks source link

Error when calling `bind` on Driver's functions #12

Closed samchon closed 5 years ago

samchon commented 5 years ago

Summary

When trying to bind some function in a Driver object, the action must be done in internal program. However, TGrid sends RFC (Remote Function Call) message to the remote system.

Code occuring the bug

https://github.com/samchon/tgrid.examples/tree/master/src/hierarchical-calculator

samchon commented 5 years ago

The bind problem has been fixed in the v0.1.3 update.

samchon commented 5 years ago

In v0.1.4 update, bind, call and apply do not use RFC. TGrid should consider such primitive functions or variables of the Function continuously.