diff --git a/src/node_nanomsg.cc b/src/node_nanomsg.cc index fcf59ce..16442fd 100644 --- a/src/node_nanomsg.cc +++ b/src/node_nanomsg.cc @@ -333,13 +333,6 @@ NAN_MODULE_INIT(InitAll) { Nan::Set(target, Nan::New(symbol_name).ToLocalChecked(), Nan::New(value)); } - Nan::Set(target, Nan::New("NN_WS").ToLocalChecked(),Nan::New(-4)); - Nan::Set(target, - Nan::New("NN_WS_MSG_TYPE").ToLocalChecked(),Nan::New(1)); - Nan::Set(target, - Nan::New("NN_WS_MSG_TYPE_TEXT").ToLocalChecked(),Nan::New(0x01)); - Nan::Set(target, - Nan::New("NN_WS_MSG_TYPE_BINARY").ToLocalChecked(),Nan::New(0x02)); } NODE_MODULE(node_nanomsg, InitAll) diff --git a/test/symbols.js b/test/symbols.js index 80c6119..b239302 100644 --- a/test/symbols.js +++ b/test/symbols.js @@ -242,6 +242,14 @@ exports.symbols = [ 'type': nn.NN_TYPE_NONE, 'unit': nn.NN_UNIT_NONE +}, +{ + 'value': nn.NN_WS, + 'name': "NN_WS", + 'ns': nn.NN_NS_TRANSPORT, + 'type': nn.NN_TYPE_NONE, + 'unit': nn.NN_UNIT_NONE + }, { 'value': nn.NN_PAIR, @@ -506,6 +514,14 @@ exports.symbols = [ 'type': nn.NN_TYPE_INT, 'unit': nn.NN_UNIT_BOOLEAN +}, +{ + 'value': nn.NN_WS_MSG_TYPE, + 'name': "NN_WS_MSG_TYPE", + 'ns': nn.NN_NS_TRANSPORT_OPTION, + 'type': nn.NN_TYPE_INT, + 'unit': nn.NN_UNIT_NONE + }, { 'value': nn.NN_DONTWAIT, @@ -514,6 +530,22 @@ exports.symbols = [ 'type': nn.NN_TYPE_NONE, 'unit': nn.NN_UNIT_NONE +}, +{ + 'value': nn.NN_WS_MSG_TYPE_TEXT, + 'name': "NN_WS_MSG_TYPE_TEXT", + 'ns': nn.NN_NS_FLAG, + 'type': nn.NN_TYPE_NONE, + 'unit': nn.NN_UNIT_NONE + +}, +{ + 'value': nn.NN_WS_MSG_TYPE_BINARY, + 'name': "NN_WS_MSG_TYPE_BINARY", + 'ns': nn.NN_NS_FLAG, + 'type': nn.NN_TYPE_NONE, + 'unit': nn.NN_UNIT_NONE + }, { 'value': nn.NN_POLLIN,