Update uWS, wrap nonStrict

This commit is contained in:
Alex Hultman 2021-02-03 00:32:19 +01:00
parent cb3bea9c3b
commit 1b86bf5349
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,8 @@ struct WebSocketWrapper {
if (topic.isInvalid(args)) {
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)) {
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));
}
}

@ -1 +1 @@
Subproject commit 359c26b0bf8e728bf857dacacff70627c6ae5738
Subproject commit a17a6a7268ee6d17c7aec51afa27264c1981aec6