Update uWS, pass Autobahn with pubsub SSL/non-SSL

This commit is contained in:
Alex Hultman 2019-10-09 00:29:53 +02:00
parent 317aaf3b75
commit 6b5f7c40a9
5 changed files with 82 additions and 7 deletions

View file

@ -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());
}
}