only for routers
(rpc AbstractRpcClient)
| 645 | |
| 646 | // only for routers |
| 647 | func (router *WshRouter) RegisterTrustedRouter(rpc AbstractRpcClient) baseds.LinkId { |
| 648 | linkId := router.RegisterUntrustedLink(rpc) |
| 649 | router.trustLink(linkId, LinkKind_Router) |
| 650 | return linkId |
| 651 | } |
| 652 | |
| 653 | func (router *WshRouter) RegisterUpstream(rpc AbstractRpcClient) baseds.LinkId { |
| 654 | if router.IsRootRouter() { |
no test coverage detected