You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I had one express backend that I had turned into next api. And in my express api i use socket io. But i see on doc that vercel not support socket io. They say to use tools like ably but as I use swr in next I saw that the function useSWRSubscription could serve me with the socket. So my question is it's possible to use useSWRSubscription for socket io ? And someone have a example for this because on doc there are only examples with websocket. I do not understand where manage socket io in next api because in express i manage this in app file and all api can access this.
Thank
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I had one express backend that I had turned into next api. And in my express api i use socket io. But i see on doc that vercel not support socket io. They say to use tools like ably but as I use swr in next I saw that the function useSWRSubscription could serve me with the socket. So my question is it's possible to use useSWRSubscription for socket io ? And someone have a example for this because on doc there are only examples with websocket. I do not understand where manage socket io in next api because in express i manage this in app file and all api can access this.
Thank
Beta Was this translation helpful? Give feedback.
All reactions