Suppressed

socket

May 18th, 2022
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. $key = base64_encode(openssl_random_pseudo_bytes(16));
  2.  
  3. $config = new ClientConfig();
  4. $config->setFragmentSize(8096);
  5. $config->setTimeout(15);
  6. $config->setHeaders([
  7. 'Accept-Encoding' => 'gzip, deflate, br',
  8. 'Accept-Language' => 'en-US,en;q=0.9',
  9. 'Cache-Control' => 'no-cache',
  10. 'Connection' => 'Upgrade',
  11. 'Host' => 'csgoexo.com',
  12. //'Origin' => 'https://websocketking.com',
  13. 'Pragma' => 'no-cache',
  14. 'Sec-WebSocket-Extensions' => 'permessage-deflate; client_max_window_bits',
  15. 'Sec-WebSocket-Key' => "$key",
  16. 'Sec-WebSocket-Version' => 13,
  17. 'Upgrade' => 'websocket',
  18. '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'
  19. ]);
  20.  
  21. $client = new WebSocketClient('wss://csgoexo.com/socket.io/?EIO=3&transport=websocket', $config);
Add Comment
Please, Sign In to add comment