how i can get the parameter in io.connect ? var socket = io.connect("ws://127.0.0.1:2021", { query: "servidor={!! $id !!}" }); $io->on('connection', function ($socket) use ($io, $lotes, $funcoes) { $time = $socket["handshake"]["query"]["servidor"]; ?