何をするか 前回、socket.ioでサンプルチャットアプリを作る記事をかいたのですが、今回はそれを少し拡張して、phpからsocket.ioにemitできるようにしてみます。備忘として書きます。 公式ページで下記のように書いてありました。 Sending messages from the outside-world In some cases, you might want to emit events to sockets in Socket.IO namespaces / rooms from outside the context of your Socket.IO processes. There’s several ways to tackle this problem, like implementing your own channel to send messages