Can I use http/https scraping proxies to scrape socket.io/wss endpoints from a website?
I want to hide real ip and prevent being blocked by the website.
import io from 'socket.io-client'
const socket = io.connect('https://weather.example.com', {
rejectUnauthorized: false,
transports: ['wss'],
agent: //some http agent/socks5 proxy agent?
});
socket.on('connect', () => {
console.log('connected');
socket.emit('giveMeData');
socket.on('someData', (data) => {
console.log('data:', data);
});
});
or is wss protocol suitable only to scrape via socks5?