I installed Ratchet for websites in PHP. It connects perfectly to my javascript client using (ws: // localhost: 8080) and successfully send / receive messages. But I want to pass some parameters, for example (ws: // localhost: 8080? Param1 = value). I canβt determine how I can access param1 in my PHP script .
If possible in the MessageComponentInterface :: onOpen (ConnectionInterface $ conn) method.
Or better: can I associate these parameters with ConnectionInterface $ conn. So I have them for further communication.
I followed http://socketo.me/docs/hello-world .
source share