Liquid, JavaScript, themes, sales channels
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hello!
I'm trying to create a Theme App Extension and for that I would use Socket IO for the websocket functions. However, I am not able to connect, I had an old project that worked as shown in the code below.
Error in my attempts:
Code used trying connect the Socket IO
import { io } from "https://cdn.socket.io/4.5.4/socket.io.esm.min.js";
const ws = new WebSocket('ws://localhost:8081')
const socket = io(ws, { transports: ['websocket'] });
socket.on("connect_error", (err) => {
console.log(`connect_error due to ${err.message}`);
});
Could anyone help me with this? Or let me know if Socket IO is still used in these cases? Thanks!
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022