1. What is Socket.IO? Socket.IO is a library for real-time, bi-directional communication between client and server. It works primarily over WebSockets, with fallback support for HTTP long-polling.
I'm trying to broadcast a message outside the socket process. I've seen in the socket.io documentation, that it is possible with socket.io-redis and socket.io-adapter. I've tried it, and it fails! any ...
websocketの勉強のため、チャットサービスを作ってみます。 開発環境は他記事で記載している「React+Node+Docker+Postgres」です。 socket.ioを利用します。 websocketで受信したときDBに登録します。 DBから値を取得するAPIも用意しておきます。 socket.io-clientを利用します。