How can we connect and publish message from PHP without using pecl?
My hosting does not allow me to use terminal command for security reason.
It can use php and composer commands.
What is the difference between using WebSocket (ws:) and without using WebSocket (wss:)?
Which one is more secure?
That would usually depend on what format a library is using, though I would guess one would use the typical wss:// and manage “tcp behind the scenes”.
Do you have an example library you are wanting to use? (The reference documentation hopefully gives examples of which format the strings should take)