From a16cd7ea500e13e774fb8109fb151e60d96e124e Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 28 Dec 2022 15:35:17 +0100 Subject: [PATCH] Read subscription event --- src/AppWrapper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AppWrapper.h b/src/AppWrapper.h index af319786..1454830c 100644 --- a/src/AppWrapper.h +++ b/src/AppWrapper.h @@ -111,6 +111,8 @@ void uWS_App_ws(const FunctionCallbackInfo &args) { pingPf.Reset(args.GetIsolate(), Local::Cast(behaviorObject->Get(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "ping", NewStringType::kNormal).ToLocalChecked()).ToLocalChecked())); /* Pong */ pongPf.Reset(args.GetIsolate(), Local::Cast(behaviorObject->Get(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "pong", NewStringType::kNormal).ToLocalChecked()).ToLocalChecked())); + /* Subscription */ + subscriptionPf.Reset(args.GetIsolate(), Local::Cast(behaviorObject->Get(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "subscription", NewStringType::kNormal).ToLocalChecked()).ToLocalChecked())); }