Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Shopify Community Downtime: The Shopify Community will be down December 5th for 15 minutes between 3pm and 4pm EST. Thank you for your understanding.

Suspicious javascript opening a web socket on localhost

Suspicious javascript opening a web socket on localhost

marchold
Shopify Partner
2 0 0

I was looking at some code on our site today when I noticed a suspicious error in the JavaScript console.  The code was trying to open a websocket on localhost. Does anyone know where this sort of code would be coming from. 

Screenshot 2024-11-05 at 12.37.00 PM.png 

Reply 1 (1)

Benjaminka
Shopify Partner
10 0 2

This seems to be connected to the Facebook Pixel and is probably an error on their side. Here you can find a thread about more people complaining about the same error: https://developers.facebook.com/community/threads/317050484803752/ , regarding the question why they use a websocket there is no clear answer, but it's probably used for Realtime Analytics

Trying myself on migration to Headless