Update uWS, pass Autobahn with pubsub SSL/non-SSL
This commit is contained in:
parent
317aaf3b75
commit
6b5f7c40a9
5 changed files with 82 additions and 7 deletions
|
@ -38,7 +38,7 @@ struct WebSocketWrapper {
|
|||
if (ws) {
|
||||
NativeString topic(isolate, args[0]);
|
||||
NativeString message(isolate, args[1]);
|
||||
ws->publish(topic.getString(), message.getString());
|
||||
ws->publish(topic.getString(), message.getString(), args[2]->BooleanValue(isolate->GetCurrentContext()).ToChecked() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT, args[3]->BooleanValue(isolate->GetCurrentContext()).ToChecked());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue