Be aware that there´s usually no "multi-threading" in the context of Mojolicious, but asynchronous processing in multiple processes.
The solution given should work with, e.g., Morbo, where a single process handles all connections.
IMHO, it won´t work in a production environment with Hypnotoad, because there you have a bunch of server processes and there´s no guarantee that the POST request will be handled by the same server process which controls the open websocket connection.
From the incoming POST request you could transfer some data to an external service and in every server process you could start a loop looking for new data there for those websocket connections managed by the respective hypnotoad process (maybe use
https://metacpan.org/pod/Mojo::Redis2#Pub-sub here).
- heiko