As of a very recent update, you can now access this like so:
function onOpen( ConnectionInterface $conn ) {
$querystring = $conn->WebSocket->request->getQuery();
}
I actually just ran into this issue myself. Tested this and it's working perfectly.