function GetModel(endpoint, requestParams, ip, port, routerParams)
{
const connection = connect(createSocket('TCP'), ip, port);
const router = createRouter(routerParams, connection);
const request = prepareRequest(router);
const requestedUsers = json(get(endpoint, request, requestParams));
const releasedRouter = releaseRouter(requestedUsers);
const relesedConnection = releaseConnection(releasedRouter);
releaseSocket(relesedConnection);
return requestedUsers;
}
./src/components/jumpUp/JumpUp.js
Line 9: Parsing error: Unexpected token, expected ";"
7 | window.webkitRequestAnimationFrame ||
8 | window.mozRequestAnimationFrame ||
> 9 | callback => {
| ^
10 | console.log('Тут', callback);
11 | window.setTimeout(callback, 1000 / 60);
12 | };