Wrap subscribe returned bool
This commit is contained in:
parent
08a54d4ba6
commit
53db43250e
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ struct WebSocketWrapper {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool nonStrict = args.Length() > 1 && args[1]->BooleanValue(isolate);
|
bool nonStrict = args.Length() > 1 && args[1]->BooleanValue(isolate);
|
||||||
ws->subscribe(topic.getString(), nonStrict);
|
bool success = ws->subscribe(topic.getString(), nonStrict);
|
||||||
|
args.GetReturnValue().Set(Boolean::New(isolate, success));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue