This is an example of how to send GET request with parameters.
<?php
require '../websock2.php';
echo $socket->
sendRequest(
WebRequest::createFromUrl(
'https://php.net/manual/add-note.php?sect=function.fopen&redirect=https://php.net/manual/en/function.fopen.php')
)->getBody();