Import from socket.io-client

119 views
Skip to first unread message

Evelina Karlsson

unread,
May 4, 2022, 5:05:18 AM5/4/22
to Chromium Extensions
Hello! I am new to chrome extensions and have bumped into some trouble. I try to create a service much alike teleparty, however much simpler. All I want to do is for my chrome extension to be able to act as a client, connecting to a websocket on a server that I have separated from the extension itself. 

My problem is that I cannot import io from 'socket.io-client'. I am not sure if this is even possible. However, there is a working example which does this although it is a five year old project using Manifest v2. Is there any way for me to make this work, or do you have any other suggestions on how I can make my chrome extension work as a client connecting to a socket?

Thanks in advance!!
Reply all
Reply to author
Forward
0 new messages