Shoppify App Theme Extension connect Socket IO

Shopify Partner
22 1 3



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 "";

  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!

Replies 0 (0)