metarhia / jstp

Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
https://metarhia.github.io/jstp
Other
142 stars 10 forks source link

Bidirectional RPCs #419

Closed ykolomiets closed 5 years ago

ykolomiets commented 5 years ago

Does jstp support bidirectional RPCs?

ykolomiets commented 5 years ago

@tshemsedinov, @belochub, @aqrln anybody?

belochub commented 5 years ago

Hi, yeah, we do support bidirectional RPCs, you can define an application field on your client with client-side RPC methods, and call them on server-side connection via connection.callMethod() or by first inspecting the interfaces using connection.inspectInterface() and then using the obtained RemoteProxy instances to make the needed calls.

ykolomiets commented 5 years ago

Thanks a lot