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

Error: Value supplied for "cookies" argument must be an array. #401

Open
mougis opened this issue Nov 23, 2020 · 0 comments
Open

Error: Value supplied for "cookies" argument must be an array. #401

mougis opened this issue Nov 23, 2020 · 0 comments

Comments

@mougis
Copy link

mougis commented Nov 23, 2020

Even I didn't set param cookies :

/lib/WebSocketRequest.js:310
            throw new Error('Value supplied for "cookies" argument must be an array.');
  wsRouter.mount(/^\/chat\/.+$/g, null, (req) => {
    const connection = req.accept(undefined, req.origin, undefined);
    connection.on('message', (data) => {
      console.info({ data });
    });
  });

  wsServer.on('request', (req) => {
    wsRouter.handleRequest(req);
  });

"websocket": "^1.0.32"
node -v : v12.19.0

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

No branches or pull requests

1 participant