socket.io npm module

The socket.io npm module is listed as being available for installation. How can this module be used for real time notification?

Hi,

As far as I know, you won’t be able to use it, if you need to open a socket on the server side to use it.
If you want to add a chat to your site, you can do it with our built in tool: Wix Chat.
More information can be found here: Wix Chat: An Overview | Help Center | Wix.com

Itay

I am interested in using it as a backend for an app rather than a chat system.

Is long polling an option?

Hi,
The npm modules were not written by wix so we aren’t able to help you with their code, if you have specific question regarding working with wix code, we will be happy to help you.

I’ve been trying to figure out how to work with Socket.io within Corvid, but is failing for two reasons:

  1. when importing from socket.io-client, it cannot be found and the only module available is socket.io
  2. importing from socket.io, it requires uws but uws does not exist in Corvid

Is there a known solution for this problem?