Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $key = base64_encode(openssl_random_pseudo_bytes(16));
- $config = new ClientConfig();
- $config->setFragmentSize(8096);
- $config->setTimeout(15);
- $config->setHeaders([
- 'Accept-Encoding' => 'gzip, deflate, br',
- 'Accept-Language' => 'en-US,en;q=0.9',
- 'Cache-Control' => 'no-cache',
- 'Connection' => 'Upgrade',
- 'Host' => 'csgoexo.com',
- //'Origin' => 'https://websocketking.com',
- 'Pragma' => 'no-cache',
- 'Sec-WebSocket-Extensions' => 'permessage-deflate; client_max_window_bits',
- 'Sec-WebSocket-Key' => "$key",
- 'Sec-WebSocket-Version' => 13,
- 'Upgrade' => 'websocket',
- 'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36 OPR/85.0.4341.79'
- ]);
- $client = new WebSocketClient('wss://csgoexo.com/socket.io/?EIO=3&transport=websocket', $config);
Add Comment
Please, Sign In to add comment