I want to do handshake with server using websockets. But unnfortunately i always get errors like
WebSocket connection to 'ws://localhost:80/myserverfile.php' failed: Error during WebSocket handshake: Unexpected response code: 200`
WebSocket connection to 'ws://localhost/PHPWebSocket-Chat-master/server.php' failed: WebSocket opening handshake timed out
Can anyone show me how can i make a handshake with the server ?
I have used phpwebsockets
,ratchet
etc libraries
Also tried this github project but failed everytime.