Update uWS, wrap nonStrict
This commit is contained in:
parent
cb3bea9c3b
commit
1b86bf5349
2 changed files with 5 additions and 3 deletions
|
@ -49,7 +49,8 @@ struct WebSocketWrapper {
|
||||||
if (topic.isInvalid(args)) {
|
if (topic.isInvalid(args)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ws->subscribe(topic.getString());
|
bool nonStrict = args.Length() > 1 && BooleanValue(isolate, args[1]);
|
||||||
|
ws->subscribe(topic.getString(), nonStrict);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +64,8 @@ struct WebSocketWrapper {
|
||||||
if (topic.isInvalid(args)) {
|
if (topic.isInvalid(args)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool success = ws->unsubscribe(topic.getString());
|
bool nonStrict = args.Length() > 1 && BooleanValue(isolate, args[1]);
|
||||||
|
bool success = ws->unsubscribe(topic.getString(), nonStrict);
|
||||||
args.GetReturnValue().Set(Boolean::New(isolate, success));
|
args.GetReturnValue().Set(Boolean::New(isolate, success));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 359c26b0bf8e728bf857dacacff70627c6ae5738
|
Subproject commit a17a6a7268ee6d17c7aec51afa27264c1981aec6
|
Loading…
Add table
Add a link
Reference in a new issue