-
nest.js websocket(socket.io) client 예제를 찾는 사람들dev/nestjs 2022. 11. 12. 16:50
https://github.com/nestjs/docs.nestjs.com/issues/858
Add tutorial for Nest Websocket Client · Issue #858 · nestjs/docs.nestjs.com
I'm submitting a... [ ] Regression [ ] Bug report [ ] Feature request [x] Documentation issue or request (new chapter/page) [ ] Support request => Please do not submit support request here, ...
github.com
nest.js 를 이용하여 전체 시스템 구성을 nest.js 만으로 만들다 보니 websocket server 예제는 공식 사이트에서 제공되지만 client 는 html 이나 app 을 이용하는 예제만 제공됨.
msa 하나가 websocket client 로 연결되는 구조가 필요하기도 한데 이에 대한 예제가 없음.
지금까지 검색으로 찾은 문서 아래 몇가지.
https://github.com/keyyuki/simple-nestjs-socketio-client
GitHub - keyyuki/simple-nestjs-socketio-client: simple nestjs microservice with socket io client
simple nestjs microservice with socket io client. Contribute to keyyuki/simple-nestjs-socketio-client development by creating an account on GitHub.
github.com
https://stackoverflow.com/a/23176223
WebSocket: How to automatically reconnect after it dies
var ws = new WebSocket('ws://localhost:8080'); ws.onopen = function () { ws.send(JSON.stringify({ .... some message the I must send when I connect .... })); }; ws.onmessage = function (...
stackoverflow.com
https://github.com/danocmx/nestjs-socket.io-client
GitHub - danocmx/nestjs-socket.io-client: A simple wrapper around socket.io-client for the nestjs framework.
A simple wrapper around socket.io-client for the nestjs framework. - GitHub - danocmx/nestjs-socket.io-client: A simple wrapper around socket.io-client for the nestjs framework.
github.com