You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Dispatcher.AddService requires a *struct to be registered. For clients that is not convenient, the options are to register the actual struct used on the server side, but that will pull in more code than necessary into the client or create a dummy struct on the client side with dummy methods that match the server side struct.
It would be nice to just have a common interface that can be shared by both the server and the client side. The server would have to register a concrete impl of that interface of course, but that struct would be known to the server only, while the client could register just the interface so that it can make calls.
The text was updated successfully, but these errors were encountered:
Currently
Dispatcher.AddService
requires a*struct
to be registered. For clients that is not convenient, the options are to register the actual struct used on the server side, but that will pull in more code than necessary into the client or create a dummy struct on the client side with dummy methods that match the server side struct.It would be nice to just have a common interface that can be shared by both the server and the client side. The server would have to register a concrete impl of that interface of course, but that struct would be known to the server only, while the client could register just the interface so that it can make calls.
The text was updated successfully, but these errors were encountered: