This is an example of how to send POST request with file uploads.
<?php
require '../websock2.php';
$params = $request->getParamManager();
$params['test_param'] = 123;
$params['test_array'] = ['a', 'b', 'c'];
$params['test_file_2']->setContentType('text/plain');
$params['array_of_attachments'] = [
];
echo $socket->sendRequest($request)->getBody();