I have a NestJS microservice using socket.io, but I need to know if it's possible to implement it in the same gateway WebSockets (WS). I need to send some requests at the same namespace from different clients (socket.io and ws). The actual implementation works only with socket.io.
It is possible to use socket.io and ws together?
824 Views Asked by No-name At
2
There are 2 best solutions below
0
Oliver Su
On
No, it is not possible according to the developers at socket.io. Here: https://socket.io/docs/#What-Socket-IO-is-not
Related Questions in WEBSOCKET
- How to send raw data using socket.io
- HttpRequestContext vs HttpContext
- Websocket support on JBoss 6
- How to send/receive messages through a web socket on windows phone 8.1
- Stop receiving an event for some time in socket io
- Nginx not passing websocket upgrade response back to client?
- Jboss showing this error in eclipse
- Oauth in Tyrus WebSocket
- Meteor: Workaround for having websockets blocked in port 80?
- Python Server - Processing WebSocket.close()
- Multithread using Executor and WebSocket
- Start Rumpetroll on Debian
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- Ratchet websocket server not responding after some hour
- Angularjs data is not updated on call of $apply
Related Questions in SOCKET.IO
- How to send raw data using socket.io
- Stop receiving an event for some time in socket io
- Socket.io chat application not working with express?
- Deleting namespace in Socket IO
- Connecting a web client to a c++ server with TCP
- Node.js - Socket.io io.emit() doing nothing
- Angular.js - How to make limitTo dynamic and persistant inside a nested ng-repeat with real time socket.io data updates
- Socketing for a Real-Time Django Application
- Get Socket Object by Id with node, redis-adapter and socket.io
- Node.js Socket.io seperate connection events for each page
- nodejs , socket.io simple code memory leak
- Is it possible to force Socket.io to use its Ajax fallback?
- Forward all messages to socket.io room
- Using Node.JS With ASP.NET WebForm and Socket.IO
- socket.io xhr post error on slow connection (3G mobile network)
Related Questions in NESTJS
- best practice for api data validation
- GraphQLError: Query root type must be provided
- How to express an union type in a GraphQL InputType
- Nestjs passport-facebook Invalid OAuth access token
- 'NestJS RabbitMQ Microservice'
- unable to read data from decoded token jwt verify
- nestjs firebase authentication
- How to send data from laravel to a redis queue implemented using Bull queue
- MongoParseError: Invalid message size: 1347703880, max allowed: 67108864 (NestJS & MongoDB Docker Container)
- aws-sdk in node app after deploying does not start
- How to use Global module in NestJs
- TypeORM: Select RANDOM() with a nested relation using QueryBuilder
- Nest js - httpservice add proxy
- Why does nestjs framework use a transport layer different than HTTP in a microservices approach?
- Restart the application when some file changes
Related Questions in NESTJS-GATEWAYS
- NestJS Gateways: path with slugs
- NestJS tcp microservice load balance
- How to handle RpcException in NestJS
- Nestjs socket from exception filter context is defined even though exception comes from http request and there's no sockets within app?
- NestJs Socket io adapter: Server does not add CORS headers to handshake's response if allowFunction is called with false. Bug or misconfiguration?
- Can we use server sent events in nestjs without using interval?
- Socket.io client is getting disconnected just after connection in NestJS
- Inject service into gateway - NestJS
- How to implement database first approach in Nest JS
- NestJs socket authentication, emit event in handleConnection
- It is possible to use socket.io and ws together?
- How to get repository in NestJS Interceptor
- How can understand error occured in backend using socket client in react?
- How to get nestjs websocket exception error in client side using react?
- How to setup different environment file in nest js using postgresql
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Socket.IO uses Websockets but it is doing much more than it appears on first glance. You should see it as a different protocol.
Maybe you have a chance with a workaround but it will probably get messy. I found something here that might help.