Objective c &引用;“插座未连接”;在swift中使用grpc

Objective c &引用;“插座未连接”;在swift中使用grpc,objective-c,swift,Objective C,Swift,与插座连接后,如下所示: [2436:81259] [] nw_socket_handle_socket_event [C1.1:1] Socket SO_ERROR [54: Connection reset by peer] 2020-03-17 12:08:01.473638+0530 [2436:81259] [] nw_read_request_report [C1] Receive failed with error "Socket is not connected" nil

与插座连接后,如下所示:

[2436:81259] [] nw_socket_handle_socket_event [C1.1:1] Socket SO_ERROR 
[54: Connection reset by peer]
2020-03-17 12:08:01.473638+0530 [2436:81259] [] nw_read_request_report 
[C1] Receive failed with error "Socket is not connected"
nil
调试数据:

debug: duration_ms=40443 request_id=C9D0AECA-A5C1-49C0-A67B- 
ED391AED783B status_code=14 rpc call finished
2020-03-17T12:08:41+0530 debug: duration_ms=40449 request_id=818AD8FF- 
8B98-41F4-BFF4-C5F67581E7E0 status_code=14 rpc call finished
2020-03-17T12:08:41+0530 debug: request_id=FC28704C-82AF-404C-87A1- 
896ADDC46E20 status_code=14 duration_ms=40441 rpc call finished
2020-03-17T12:08:41+0530 debug: connection_id=F2C25657-E82B-4685-AE32- 
C202F119C882 client connection shutdown successfully

您好,您能解释一下,您是如何配置您的SokSet的吗?我正在使用双向grpc let配置=ClientConnection。配置(目标:.hostAndPort(baseUrl,端口),eventLoopGroup:group)let连接=ClientConnection(配置:配置)让client=appbidrctnlinfsrvServiceClient(连接:connection)我认为您应该自己使用“pod'Socket.IO client Swift'”。