forked from vtortola/WebSocketListener
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I am not sure yet that what I am doing here is what the lib expects me to do, but if so, it seems a waste allocation wise (games, unity)
while (_textSenderQueue.TryDequeue(out var buffer))
{
var writer = _socket.CreateMessageWriter(vtortola.WebSockets.WebSocketMessageType.Text);
await writer.WriteAsync(buffer, _cancellationToken);
await writer.CloseAsync();
}
any advise?
Also this code works fine on pc, but on mobile there is a big lag not sure why
Metadata
Metadata
Assignees
Labels
No labels