Open bottasergio opened 6 years ago
Could you translate the error message to English?
@kerryjiang it means:
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
Do you have a lots of concurrent connections? There might be connection leak issue.
Yes. I have lot of records that I have to send to my provider via websocket.
Is it necessary to close the connection after websocket_MessageReceived
or websocket_Error
?
@kerryjiang is this a correct use of your component?? if I have a lot of simultaneous calls:
For ....
Dim wsDGSA As WebSocket4Net.WebSocket
wsDGSA = New WebSocket4Net.WebSocket(URL_WSS)
AddHandler wsDGSA.Opened, AddressOf Me.wsDGSA_Opened
AddHandler wsDGSA.Error, AddressOf Me.wsDGSA_Error
AddHandler wsDGSA.Closed, AddressOf Me.wsDGSA_Closed
AddHandler wsDGSA.MessageReceived, AddressOf Me.wsDGSA_MensajeRecibido
wsDGSA.Open()
Next
How can I send different data each time?
Thanks for your help.
Can you just use only one connection to send data?
No, it is not possible because the server where I have to send data, can only receive one transaction at a time. And I have each 10 seconds, 12 or 15 records to send. Any suggestion?
Solved, thanks!
Dim wsDGSA As WebSocket4Net.WebSocket
wsDGSA = New WebSocket4Net.WebSocket(URL_WSS)
AddHandler wsDGSA.Opened, AddressOf Me.wsDGSA_Opened
AddHandler wsDGSA.Error, AddressOf Me.wsDGSA_Error
AddHandler wsDGSA.Closed, AddressOf Me.wsDGSA_Closed
AddHandler wsDGSA.MessageReceived, AddressOf Me.wsDGSA_MensajeRecibido
wsDGSA.Open()
For ...
wsDGSA.Send(...)
Next
wsDGSA.Close()
wsDGSA.Dispose()
Could you please help me with this implementation of WebSocket4Net.
I receive this error:
Maybe I need to close connection after I send the message??
Thanks