make: Entering directory '/home/ubuntu/code-base/node_modules/uws/build' CXX(target) Release/obj.target/uws/src/Extensions.o CXX(target) Release/obj.target/uws/src/Group.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/Group.h:4, from ../src/Group.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/Networking.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Networking.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/Hub.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/Group.h:4, from ../src/Hub.h:4, from ../src/Hub.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/Node.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/Node.h:4, from ../src/Node.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/WebSocket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/WebSocket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/HTTPSocket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/HTTPSocket.h:4, from ../src/HTTPSocket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/Socket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/Socket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ CXX(target) Release/obj.target/uws/src/addon.o In file included from ../src/../src/Backend.h:9, from ../src/../src/Networking.h:69, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: ../src/../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/../src/Libuv.h:168:48: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~ ../src/../src/Libuv.h: In lambda function: ../src/../src/Libuv.h:171:58: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:21:124: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 21 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, noop), 0, nullptr); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:21:124: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 21 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, noop), 0, nullptr); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In constructor ‘NativeString::NativeString(const v8::Local&)’: ../src/addon.h:37:70: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(const v8::Local&)’ 37 | utf8Value = new (utf8ValueMemory) String::Utf8Value(value); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3287:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local)’ 3287 | Utf8Value(Isolate* isolate, Local obj); | ^~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3287:5: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:2: ../src/addon.h:45:85: warning: ‘v8::ArrayBuffer::Contents v8::ArrayBuffer::GetContents()’ is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 45 | ArrayBuffer::Contents contents = arrayBufferView->Buffer()->GetContents(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5273:12: note: declared here 5273 | Contents GetContents(); | ^~~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:50:71: warning: ‘v8::ArrayBuffer::Contents v8::ArrayBuffer::GetContents()’ is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 50 | ArrayBuffer::Contents contents = arrayBuffer->GetContents(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5273:12: note: declared here 5273 | Contents GetContents(); | ^~~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void createGroup(const v8::FunctionCallbackInfo&)’: ../src/addon.h:79:83: error: no matching function for call to ‘v8::Value::IntegerValue()’ 79 | uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h:79:108: error: no matching function for call to ‘v8::Value::IntegerValue()’ 79 | uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘v8::Local wrapMessage(const char*, size_t, uWS::OpCode, v8::Isolate*)’: ../src/addon.h:102:109: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 102 | return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:2: ../src/addon.h:102:109: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 102 | return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:2: ../src/addon.h:102:174: error: ‘kNormalString’ is not a member of ‘v8::String’ 102 | return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); | ^~~~~~~~~~~~~ ../src/addon.h: In function ‘void sendCallback(uWS::WebSocket*, void*, bool, void*)’: ../src/addon.h:163:146: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void send(const v8::FunctionCallbackInfo&)’: ../src/addon.h:172:62: error: no matching function for call to ‘v8::Value::IntegerValue()’ 172 | uWS::OpCode opCode = (uWS::OpCode) args[2]->IntegerValue(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void transfer(const v8::FunctionCallbackInfo&)’: ../src/addon.h:223:60: error: no matching function for call to ‘v8::Value::ToObject()’ 223 | uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToObject(v8::Local) const’ 2822 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject( | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h:225:44: error: no matching function for call to ‘v8::Value::IntegerValue()’ 225 | ticket->fd = args[0]->IntegerValue(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:256:136: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:272:110: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [2])’ 272 | Local::New(isolate, *messageCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:288:130: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:304:130: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:324:139: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:339:131: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 339 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *errorCallback), 1, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:339:131: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 339 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *errorCallback), 1, argv); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void closeSocket(const v8::FunctionCallbackInfo&)’: ../src/addon.h:349:81: error: no matching function for call to ‘v8::Value::IntegerValue()’ 349 | unwrapSocket(args[0].As())->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void closeGroup(const v8::FunctionCallbackInfo&)’: ../src/addon.h:361:40: error: no matching function for call to ‘v8::Value::IntegerValue()’ 361 | group->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void broadcast(const v8::FunctionCallbackInfo&)’: ../src/addon.h:372:48: error: no matching function for call to ‘v8::Value::BooleanValue()’ 372 | uWS::OpCode opCode = args[2]->BooleanValue() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2858:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’ 2858 | bool BooleanValue(Isolate* isolate) const; | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2858:8: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void prepareMessage(const v8::FunctionCallbackInfo&)’: ../src/addon.h:379:62: error: no matching function for call to ‘v8::Value::IntegerValue()’ 379 | uWS::OpCode opCode = (uWS::OpCode) args[1]->IntegerValue(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:403:40: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 403 | cb->Call(Null(isolate), 1, argv); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void startAutoPing(const v8::FunctionCallbackInfo&)’: ../src/addon.h:416:48: error: no matching function for call to ‘v8::Value::IntegerValue()’ 416 | group->startAutoPing(args[1]->IntegerValue(), std::string(nativeString.getData(), nativeString.getLength())); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void listen(const v8::FunctionCallbackInfo&)’: ../src/addon.h:425:38: error: no matching function for call to ‘v8::Value::IntegerValue()’ 425 | hub.listen(args[1]->IntegerValue(), nullptr, 0, group); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In constructor ‘Namespace::Namespace(v8::Isolate*)’: ../src/addon.h:462:65: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local&)’ 462 | object->Set(String::NewFromUtf8(isolate, "group"), group); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::Request::headers(v8::Local, const v8::PropertyCallbackInfo&)’: ../src/http.h:31:123: error: ‘kNormalString’ is not a member of ‘v8::String’ 31 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) header.value, String::kNormalString, header.valueLength)); | ^~~~~~~~~~~~~ ../src/http.h: In static member function ‘static void HttpServer::Request::method(v8::Local, const v8::PropertyCallbackInfo&)’: ../src/http.h:45:112: error: ‘kNormalString’ is not a member of ‘v8::String’ 45 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "GET", String::kNormalString, 3)); | ^~~~~~~~~~~~~ ../src/http.h:48:112: error: ‘kNormalString’ is not a member of ‘v8::String’ 48 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PUT", String::kNormalString, 3)); | ^~~~~~~~~~~~~ ../src/http.h:51:113: error: ‘kNormalString’ is not a member of ‘v8::String’ 51 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "POST", String::kNormalString, 4)); | ^~~~~~~~~~~~~ ../src/http.h:54:113: error: ‘kNormalString’ is not a member of ‘v8::String’ 54 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "HEAD", String::kNormalString, 4)); | ^~~~~~~~~~~~~ ../src/http.h:57:114: error: ‘kNormalString’ is not a member of ‘v8::String’ 57 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PATCH", String::kNormalString, 5)); | ^~~~~~~~~~~~~ ../src/http.h:60:114: error: ‘kNormalString’ is not a member of ‘v8::String’ 60 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "TRACE", String::kNormalString, 5)); | ^~~~~~~~~~~~~ ../src/http.h:63:115: error: ‘kNormalString’ is not a member of ‘v8::String’ 63 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "DELETE", String::kNormalString, 6)); | ^~~~~~~~~~~~~ ../src/http.h:66:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 66 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "OPTIONS", String::kNormalString, 7)); | ^~~~~~~~~~~~~ ../src/http.h:69:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 69 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "CONNECT", String::kNormalString, 7)); | ^~~~~~~~~~~~~ ../src/http.h: In static member function ‘static v8::Local HttpServer::Request::getTemplateObject(v8::Isolate*)’: ../src/http.h:90:63: error: cannot convert ‘v8::MaybeLocal’ to ‘v8::Local’ 90 | reqTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Request")); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ | | | v8::MaybeLocal In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6537:35: note: initializing argument 1 of ‘void v8::FunctionTemplate::SetClassName(v8::Local)’ 6537 | void SetClassName(Local name); | ~~~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:92:113: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::MaybeLocal, void (&)(v8::Local, const v8::PropertyCallbackInfo&))’ 92 | reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "url"), Request::url); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6793:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local, v8::SideEffectType, v8::SideEffectType)’ 6793 | void SetAccessor( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6794:21: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6794 | Local name, AccessorGetterCallback getter, | ~~~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6801:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local, v8::SideEffectType, v8::SideEffectType)’ 6801 | void SetAccessor( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6802:19: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6802 | Local name, AccessorNameGetterCallback getter, | ~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:93:119: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::MaybeLocal, void (&)(v8::Local, const v8::PropertyCallbackInfo&))’ 93 | reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "method"), Request::method); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6793:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local, v8::SideEffectType, v8::SideEffectType)’ 6793 | void SetAccessor( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6794:21: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6794 | Local name, AccessorGetterCallback getter, | ~~~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6801:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local, v8::SideEffectType, v8::SideEffectType)’ 6801 | void SetAccessor( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6802:19: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6802 | Local name, AccessorNameGetterCallback getter, | ~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:94:135: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 94 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Request::on)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:95:143: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 95 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "unpipe"), FunctionTemplate::New(isolate, Request::unpipe)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:96:143: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 96 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "resume"), FunctionTemplate::New(isolate, Request::resume)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:97:143: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 97 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "socket"), FunctionTemplate::New(isolate, Request::socket)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:99:74: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 99 | Local reqObjectLocal = reqTemplateLocal->GetFunction()->NewInstance(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 6482 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:102:30: error: ‘class v8::ObjectTemplate’ has no member named ‘SetNamedPropertyHandler’; did you mean ‘SetIndexedPropertyHandler’? 102 | headersTemplate->SetNamedPropertyHandler(Request::headers); | ^~~~~~~~~~~~~~~~~~~~~~~ | SetIndexedPropertyHandler ../src/http.h:104:103: error: no matching function for call to ‘v8::ObjectTemplate::NewInstance()’ 104 | reqObjectLocal->Set(String::NewFromUtf8(isolate, "headers"), headersTemplate->NewInstance()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6762:44: note: candidate: ‘v8::MaybeLocal v8::ObjectTemplate::NewInstance(v8::Local)’ 6762 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(Local context); | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6762:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::Response::writeHead(const v8::FunctionCallbackInfo&)’: ../src/http.h:137:87: error: no matching function for call to ‘v8::Value::IntegerValue()’ 137 | std::string head = "HTTP/1.1 " + std::to_string(args[0]->IntegerValue()) + " "; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:147:85: error: no matching function for call to ‘v8::Value::ToObject()’ 147 | Local headersObject = args[args.Length() - 1]->ToObject(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToObject(v8::Local) const’ 2822 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject( | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:148:79: error: no matching function for call to ‘v8::Object::GetOwnPropertyNames()’ 148 | Local headers = headersObject->GetOwnPropertyNames(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3837:43: note: candidate: ‘v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local)’ 3837 | V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( | ^~~~~~~~~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3837:43: note: candidate expects 1 argument, 0 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3846:43: note: candidate: ‘v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local, v8::PropertyFilter, v8::KeyConversionMode)’ 3846 | V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( | ^~~~~~~~~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3846:43: note: candidate expects 3 arguments, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:149:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 149 | for (int i = 0; i < headers->Length(); i++) { | ~~^~~~~~~~~~~~~~~~~~~ ../src/http.h:150:58: error: no matching function for call to ‘v8::Array::Get(int&)’ 150 | Local key = headers->Get(i); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 3717 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 3720 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:151:68: error: no matching function for call to ‘v8::Object::Get(v8::Local&)’ 151 | Local value = headersObject->Get(key); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 3717 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 3720 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static v8::Local HttpServer::Response::getTemplateObject(v8::Isolate*)’: ../src/http.h:188:63: error: cannot convert ‘v8::MaybeLocal’ to ‘v8::Local’ 188 | resTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Response")); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ | | | v8::MaybeLocal In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6537:35: note: initializing argument 1 of ‘void v8::FunctionTemplate::SetClassName(v8::Local)’ 6537 | void SetClassName(Local name); | ~~~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:190:138: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 190 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "end"), FunctionTemplate::New(isolate, Response::end)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:191:150: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 191 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "writeHead"), FunctionTemplate::New(isolate, Response::writeHead)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:192:142: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 192 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "write"), FunctionTemplate::New(isolate, Response::write)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:193:136: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 193 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Response::on)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:194:150: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 194 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "setHeader"), FunctionTemplate::New(isolate, Response::setHeader)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:195:150: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 195 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "getHeader"), FunctionTemplate::New(isolate, Response::getHeader)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:196:50: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 196 | return resTemplateLocal->GetFunction()->NewInstance(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 6482 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:227:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 227 | reqObject->SetInternalField(4, String::NewFromOneByte(isolate, (uint8_t *) req.getUrl().value, String::kNormalString, req.getUrl().valueLength)); | ^~~~~~~~~~~~~ ../src/http.h:230:118: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [2])’ 230 | Local::New(isolate, *httpRequestCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:235:82: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 235 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:3: ../src/http.h:235:82: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 235 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:3: ../src/http.h:236:110: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 236 | Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:242:116: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 242 | Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:265:110: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 265 | Local::Cast(closeCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:279:78: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 279 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:3: ../src/http.h:279:78: warning: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, void*, size_t, v8::ArrayBufferCreationMode)’ is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] 279 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:5176:29: note: declared here 5176 | static Local New( | ^~~ In file included from ../src/addon.cpp:3: ../src/http.h:280:106: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 280 | Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:286:112: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 286 | Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::createServer(const v8::FunctionCallbackInfo&)’: ../src/http.h:293:122: error: no matching function for call to ‘v8::Function::NewInstance()’ 293 | args.GetReturnValue().Set(newInstance = Local::New(args.GetIsolate(), httpPersistent)->NewInstance()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4451:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ 4451 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4451:44: note: candidate expects 3 arguments, 0 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4454:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ 4454 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4454:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::listen(const v8::FunctionCallbackInfo&)’: ../src/http.h:308:69: error: no matching function for call to ‘v8::Value::IntegerValue()’ 308 | std::cout << "listen: " << hub.listen(args[0]->IntegerValue(), nullptr, 0, group) << std::endl; | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 2863 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:2863:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:311:126: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 311 | Local::Cast(args[args.Length() - 1])->Call(args.GetIsolate()->GetCurrentContext()->Global(), 0, nullptr); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 4468 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::getExpressApp(const v8::FunctionCallbackInfo&)’: ../src/http.h:320:65: error: no matching function for call to ‘v8::Function::Get(v8::MaybeLocal)’ 320 | express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), reqTemplate)->GetPrototype()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 3717 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 3720 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:321:66: error: no matching function for call to ‘v8::Function::Get(v8::MaybeLocal)’ 321 | express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), resTemplate)->GetPrototype()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 3717 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 3720 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:327:60: error: no matching function for call to ‘v8::Function::NewInstance()’ 327 | args.GetReturnValue().Set(express->NewInstance()); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4451:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ 4451 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4451:44: note: candidate expects 3 arguments, 0 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4454:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ 4454 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:4454:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static v8::Local HttpServer::getHttpServer(v8::Isolate*)’: ../src/http.h:343:127: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 343 | httpServer->Set(String::NewFromUtf8(isolate, "createServer"), FunctionTemplate::New(isolate, HttpServer::createServer)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:344:129: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 344 | httpServer->Set(String::NewFromUtf8(isolate, "getExpressApp"), FunctionTemplate::New(isolate, HttpServer::getExpressApp)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:345:143: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 345 | httpServer->Set(String::NewFromUtf8(isolate, "getResponsePrototype"), FunctionTemplate::New(isolate, HttpServer::getResponsePrototype)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:346:141: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 346 | httpServer->Set(String::NewFromUtf8(isolate, "getRequestPrototype"), FunctionTemplate::New(isolate, HttpServer::getRequestPrototype)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:347:136: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 347 | httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "listen"), FunctionTemplate::New(isolate, HttpServer::listen)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:348:128: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 348 | httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, HttpServer::on)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 6029 | void Set(Local name, Local value, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6029:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 6029 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local)’ 11354 | void Template::Set(Isolate* isolate, const char* name, Local value) { | ^~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:11354:6: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:353:67: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 353 | Local httpServerLocal = httpServer->GetFunction(); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 6482 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided ../src/addon.cpp: In function ‘void Main(v8::Local)’: ../src/addon.cpp:8:96: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 8 | exports->Set(String::NewFromUtf8(isolate, "server"), Namespace(isolate).object); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided ../src/addon.cpp:9:96: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 9 | exports->Set(String::NewFromUtf8(isolate, "client"), Namespace(isolate).object); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided ../src/addon.cpp:10:96: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 10 | exports->Set(String::NewFromUtf8(isolate, "httpServer"), HttpServer::getHttpServer(isolate)); | ^ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.h:1, from ../src/addon.cpp:2: ../src/addon.cpp: At global scope: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:758:43: warning: cast between incompatible function types from ‘void (*)(v8::Local)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] 758 | (node::addon_register_func) (regfunc), \ | ^ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:792:3: note: in expansion of macro ‘NODE_MODULE_X’ 792 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/addon.cpp:24:1: note: in expansion of macro ‘NODE_MODULE’ 24 | NODE_MODULE(uws, Main) | ^~~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void getAddress(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.cpp:15:67: required from here ../src/addon.h:137:5: error: no matching function for call to ‘v8::Array::Set(int, v8::Local)’ 137 | array->Set(0, Integer::New(args.GetIsolate(), address.port)); | ^~~~~ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h:138:5: error: no matching function for call to ‘v8::Array::Set(int, v8::MaybeLocal)’ 138 | array->Set(1, String::NewFromUtf8(args.GetIsolate(), address.address)); | ^~~~~ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h:139:5: error: no matching function for call to ‘v8::Array::Set(int, v8::MaybeLocal)’ 139 | array->Set(2, String::NewFromUtf8(args.GetIsolate(), address.family)); | ^~~~~ In file included from /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:441:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:443:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:454:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:455:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:441:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:443:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:454:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:455:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = true]’: ../src/addon.h:179:18: required from ‘void send(const v8::FunctionCallbackInfo&) [with bool isServer = true]’ ../src/addon.h:433:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = false]’: ../src/addon.h:179:18: required from ‘void send(const v8::FunctionCallbackInfo&) [with bool isServer = false]’ ../src/addon.h:433:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:191:50: note: declared here 191 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /home/ubuntu/.cache/node-gyp/14.16.1/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ 108 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ make: *** [uws.target.mk:116: Release/obj.target/uws/src/addon.o] Error 1 make: Leaving directory '/home/ubuntu/code-base/node_modules/uws/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/ubuntu/.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Linux 5.15.0-1026-aws gyp ERR! command "/home/ubuntu/.nvm/versions/node/v14.16.1/bin/node" "/home/ubuntu/.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/code-base/node_modules/uws gyp ERR! node -v v14.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok