We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8bc01d commit 5cc462aCopy full SHA for 5cc462a
Example1/AudioStreamer.cs
@@ -39,7 +39,7 @@ private void configure ()
39
_websocket.Send (createTextMessage ("connection", String.Empty));
40
41
_websocket.OnMessage += (sender, e) => {
42
- if (e.Type == Opcode.Text) {
+ if (e.IsText) {
43
_notifier.Notify (convertTextMessage (e.Data));
44
}
45
else {
Example1/Notifier.cs
@@ -54,9 +54,7 @@ public int Count {
54
private NotificationMessage dequeue ()
55
{
56
lock (_sync)
57
- return _queue.Count > 0
58
- ? _queue.Dequeue ()
59
- : null;
+ return _queue.Count > 0 ? _queue.Dequeue () : null;
60
61
62
public void Close ()
0 commit comments