Category : websocket

I have installed GOS Websocket on symfony 3.2, i made the minimal config to launch the server but i get the Fatal error: Uncaught SymfonyComponentConsoleExceptionLogicException: An option named "connection" already exists whenever i launch my server, event the server:run bugs. If anyone can help, thank you Source: Symfony..

Read more

There is a symfony application that uses php websockets with Ratchet (http://socketo.me/docs/sessions). It seems to be very common to create a websocket application that can broadcast a received messages to all connected clients (web browsers). But I have big issues to send a message only to a specific client (e.g. load user with getUser() and ..

Read more

I’ve a problem with my web socket service Here’s my code about the service : <?php namespace AppCommand; use SymfonyComponentConsoleCommandCommand; use SymfonyComponentConsoleInputInputInterface; use SymfonyComponentConsoleOutputOutputInterface; use SymfonyComponentDependencyInjectionContainerInterface; // Include ratcher libs use RatchetServerIoServer; use RatchetHttpHttpServer; use RatchetWebSocketWsServer; use AppSocketsChat; class ChatServerCommand extends Command { protected $container; public function __construct(ContainerInterface $container) { $this->container = $container; parent::__construct(); } ..

Read more

I have implemented a ratchet websocket on a symfony project, connection to the websocket works perfectly on machines from the same network, but when I implemented it on a distant machine it didn’t work (CONNECTION TIMED OUT). here is my Ratchet Code on Symfony Project protected function configure() { $this ->setName(‘afsy:app:chat-server’) ->setDescription(‘Start chat server’); } ..

Read more