jeudi 17 janvier 2019

How to connect to a secure websocket using php with custom header

I need an help. Starting the WhatsApp Web session happens by just connecting to one of its websocket servers at wss://w[1-8].web.whatsapp.com/ws (wss:// means that the websocket connection is secure; w[1-8] means that any number between 1 and 8 can follow the w). Also make sure that, when establishing the connection, the HTTP header Origin: https://web.whatsapp.com is set, otherwise the connection will be rejected.

How can I do this using PHP?




Aucun commentaire:

Enregistrer un commentaire