Sending in only posts in Websocket PHP ratchet

  javascript, php, ratchet, websocket

I have a comment system where I use Ratchet php for realtime posting and it works fine but when I post a comment the comment appears on the current page and on all pages of posted posts it bothers me the user will have to do refresh the page so that the comment disappears.

So I would like to know is there a way around this problem or not? Thank you for your help.

ps:if you need the code i can’t because i’m at work but when i’m home i will send you.

Source: Ask PHP