Hello guys,
I am new in the Wix world. I read the posts about websocket on the forum but didn’t quite get the answer I wanted. Is it possible to implement websocket on wix? I already installed packages like websocket, socket. io,express but they all require the http package which is not available…
I hope someone can help me about that.
I’m not really sure what exactly you want to do, but the following articles might be helpful:
I wanted to use websocket for a multiplayer game using wix api but I don’t think it is possible. Thanks for the answer
did you ever figure it out?
It seems Websocket can not be found in backend code and will introduce a error. How to work out this?
@1054377643 Perhaps the Websocket NPM library will work for you.
@yisrael-wix I think Yoav told me back then that Websockets couldn’t work on Wix backend.
Even even wix-realtime is based on a third party that sets the websocket on its servers.
@yisrael-wix npm websocket can not be used in frontend code and it works in the backend code. It work well while async needed to be thought about some time.