PHPWebSocket-Chat
PHPWebSocket-Chat copied to clipboard
wss support
Hi, congratulations for the the personal implementation of the WebSocket server. I'm going to use your library for a personal open source project. I have one very important request. Is it possible to add the "wss" (WebSockets over SSL/TLS) protocol support inside the php class library (I need it for my project)?
Thank you.
I also would like to know this, please
And me too.
how to use "wss" ?
How i can use wss? If anyone got answer. Please let me know
You get a certificate just like https or perhaps even the same one using letsEncript or paid services, link that to your web server and all should work.
Hello I have an nginx web server and I have installed SSL from Unizeto technology S.A, but when it is connected, all IPs are returned to my IP server. Is there a problem with config nginx? or Is there a problem with the source code? please help me
@twelvew12 normally wss shares https’s certificates to be secure, If your https server is working so will ssl! What IP server are you talking about? Can you be more specific in the steps you are doing?
SSL certificates is a web server configuration problem if you’re using nginx, it’d be a different story if it was node.js where your web server is in the code not separate like nginx.
Thank you very much for your answer I mean the same server IP virtual server IP. Also, I used a php socket, not node,js
How to configure ssl to set wss?
In Nginx You can use a proxy to place everything through ssl, have a look at: https://github.com/nicokaiser/nginx-websocket-proxy/blob/master/simple-wss.conf
But if you’re asking how you can set up ssl on the server, normally a public body Unizetl technology S.A just verifies through a program Your server from the outside while giving you 2 files, private and public key. You use those in the configuration I linked above.
Thanks I have a DirectAdmin and I do ssl settings automatically. Also, the link that you sent is in accordance with my socket settings. But I do not know why class.PHPWebSocket.php returns all ip's to the virtual server's IP.
I installed this program correctly on nginx before I installed ssl. What should I do?
Hello good time If you can solve it somehow. Behold : We have these things: nginx ssl firewall
Which of these items is messing up. When we did not have ssl, websocket would return the correct IPs, but now it will return the ip server?