WebSocketBundle
WebSocketBundle copied to clipboard
Create differents channel from one URL
I think it's easy to solve my problem but I need a solution
Let's take an example. I've two chatroom with theses URL
URL1: http://127.0.0.1:8000/app_dev.php/app/example?ids=4;2 URL2 : http://127.0.0.1:8000/app_dev.php/app/example?ids=8;6
I well implemented GoS through the demo, but I want unique topic by URL to avoid all clients on URL 1 to forward messages to URL2.
Depending on the URLs which have the same structure, I want differents channels
Routing.yml
acme_topic:
channel: acme/channel/*
handler:
callback: 'acme.topic'
Services.yml:
services:
acme_hello.topic_sample_service:
class: AppBundle\Topic\AcmeTopic
tags:
- { name: gos_web_socket.topic }