integrate api

integrate api with stream and implement some client side
This commit is contained in:
aliamerj
2025-09-01 14:05:19 +03:00
parent 3f6d95552f
commit 08641b735d
8 changed files with 261 additions and 88 deletions

View File

@@ -298,7 +298,7 @@ func (c *GrpcClient) handleSyncStream(ctx context.Context, serverPubKey wgtypes.
// blocking until error
err = c.receiveUpdatesEvents(stream, serverPubKey, msgHandler)
if err != nil {
if err != nil && err != io.EOF{
c.notifyDisconnected(err)
s, _ := gstatus.FromError(err)
switch s.Code() {