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
{{ message }}
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.
After multiple clients send different messages at the same time, all events fire, but all messages are the same as the last client's message that arrived. It appears as if the last client's message creates a conflict and destroys the previous messages.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim MyWebSocket As WebSocketServer = New WebSocketServer()
MyWebSocket.Setup(prot)
MyWebSocket.Start()
AddHandler MyWebSocket.NewMessageReceived, AddressOf MyWebSocket_NewMessageReceived
End Sub
event:
Private Sub MyWebSocket_NewMessageReceived(session As WebSocketSession, value As String)
Invoke(Sub()
ListBox1.Items.Add(value)
End Sub)
End Sub
If two clients send a message at the same time, for example: Client1.Send("Data1") Client2.Send("Data2")
then ListBox1.Items are Data2, Data2.
What's the solution?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After multiple clients send different messages at the same time, all events fire, but all messages are the same as the last client's message that arrived. It appears as if the last client's message creates a conflict and destroys the previous messages.
event:
If two clients send a message at the same time, for example:
Client1.Send("Data1")
Client2.Send("Data2")
then ListBox1.Items are Data2, Data2.
What's the solution?
The text was updated successfully, but these errors were encountered: