Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMQ_CONFLATE option appears to be unavailable in 6.0.0-beta.19 (using compatibility zeromq/v5-compat.js) #607

Open
sjlyoung58 opened this issue Mar 17, 2024 · 1 comment
Labels

Comments

@sjlyoung58
Copy link

Importing ZMQ_CONFLATE gives undefined
I cannot access/use the ZMQ_CONFLATE option

Reproducing

import zeromq from 'zeromq/v5-compat.js';

const { ZMQ_SNDHWM } = zeromq; // Import the socket option constant
console.log(`ZMQ_SNDHWM = ${ZMQ_SNDHWM}`);
const { ZMQ_CONFLATE } = zeromq; // Import the socket option constant
console.log(`ZMQ_CONFLATE = ${ZMQ_CONFLATE}`);

output...

ZMQ_SNDHWM = 23
ZMQ_CONFLATE = undefined

Expected behavior
The import of ZMQ_CONFLATE should succeed and return an integer value

Tested on

  • OS: Ubuntu 20.04 (Windows 11 WSL version: 2.1.4.0)
  • ZeroMQ.js version: 6.0.0-beta.19
@sjlyoung58 sjlyoung58 added the bug label Mar 17, 2024
@sjlyoung58
Copy link
Author

If I grep the zeromq src directory I get this which may be a clue (missing in src/compat.ts?)

grep -r CONFLATE node_modules/zeromq/src/
node_modules/zeromq/src/index.ts:   * ZMQ_CONFLATE
node_modules/zeromq/src/index.ts:   * ZMQ_CONFLATE
node_modules/zeromq/src/index.ts:   * ZMQ_CONFLATE
node_modules/zeromq/src/index.ts:   * ZMQ_CONFLATE
node_modules/zeromq/src/index.ts:   * ZMQ_CONFLATE
grep -r SNDHWM node_modules/zeromq/src/
node_modules/zeromq/src/socket.cc:        ZMQ_SNDHWM,
node_modules/zeromq/src/compat.ts:  ZMQ_SNDHWM: 23,
node_modules/zeromq/src/compat.ts:      case longOptions.ZMQ_SNDHWM:
node_modules/zeromq/src/compat.ts:      case longOptions.ZMQ_SNDHWM:
node_modules/zeromq/src/index.ts:   * ZMQ_SNDHWM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant