question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gateway / WsAdapter Example Unknown

See original GitHub issue

I’m submitting a…


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I’ve been deep-diving how the WebSocket gateways (and gateways in general) are put together and I’ve found a peculiar omission in https://github.com/nestjs/nest/tree/master/examples/02-gateways: useWebSocketAdapter() isn’t actually called in that example, so the ws adapter doesn’t appear to be used.

I believe this may be a documentation error/omission. (or is there some fancy auto-detection going on that I haven’t tracked down yet?)

Expected behavior

n/a

Minimal reproduction of the problem with instructions

n/a

What is the motivation / use case for changing the behavior?

n/a

Environment


Nest version: `master`
For Tooling issues:
- Node version: n/a
- Platform:  n/a

Others:
n/a

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilmysliwieccommented, Mar 9, 2018

I’ll update both documentation and examples together with an incoming update.

0reactions
lock[bot]commented, Sep 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NestJS Websocket Gateway: using namespaces with the WS ...
I use the WS adapter. const app = await NestFactory.create(ApplicationModule); app.useWebSocketAdapter(new WsAdapter(app));. The problem I have ...
Read more >
Resolving a service 'sapxxnn' unknown error - IBM
This error is caused when the SAP gateway protocol 'sapxxnn' is not existing in the services file. In UNIX, it is located in...
Read more >
Scalable WebSockets with NestJS and Redis - LogRocket Blog
The publish method takes a channel and an unknown value and uses the redisPublisherClient to publish it. We assume that the provided value ......
Read more >
Integrate external event processes: FAQs - ITOM Practitioner Portal
This section contains a collection of frequently asked questions (FAQs) related to integrating external event processes. The FAQs are intended to assist ...
Read more >
Adapter - Gateways | NestJS - A progressive Node.js framework
A working example that uses WsAdapter is available here. Support us. Nest is an MIT-licensed open source project. It can grow thanks to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found