Thanks for the answer, I am trying to apply it without success, I am doing it this way: front: self.Ws = new Websocket('Ws://localhost:9000?mat_func=22'); back: // Starting connection $server = Ioserver::Factory( new Httpserver( new Wsserver( new Simplechat( @$_SERVER['QUERY_STRING']) ) ), 9000 ); $server->run(); would be something like that?
https://stackoverflow.com/questions/39191583/how-to-get-url-param-with-php-websocket#comment65723838_39191583
– Valdeir Psr
Thanks for the answer, I am trying to apply it without success, I am doing it this way: front: self.Ws = new Websocket('Ws://localhost:9000?mat_func=22'); back: // Starting connection $server = Ioserver::Factory( new Httpserver( new Wsserver( new Simplechat( @$_SERVER['QUERY_STRING']) ) ), 9000 ); $server->run(); would be something like that?
– Victor M.
Avoid the use of
@
in the code and if possible use thexDebug
orvar_dump()
to check if the variables are receiving the value.– Valdeir Psr