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
In the current implementation Initrequires specifying a service name and an RPC name to open a stream, so it could not be used as "general initialization". I think that issue requires more deep refactoring.
BTW, I think that issue is quite actual. Currently, SDK client does a really strange thing to open the connection:
It does nothing on dialing errors (are just ignored);
i forget about that call and spent some time figuring out why i am facing strange requests on the server-side with zero version and empty request body.
It's basically about making createGRPCClient() a Dial(). Which would be a nice enhancement. Luckily current SDK code hides this, so it's not a priority.
In current Client implementation connection is opened once during first
Init
call. I propose to highlight the working method:The method should be called before the work. This method is going to be called during the application start-up stage.
The text was updated successfully, but these errors were encountered: