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
used with (e.g. hapi application, another framework, standalone, ...): hapiJS
any other relevant information:
How can we help?
I looked at docs, as ell as open/closed issue using the 'polling' keyword and couldn't find how to add a polling fallback on hapijs such as this exists on library like socket.io.
We would want to use the publish/subscribe method as well as the hapiJS request with 'post/get' method.
/**CLIENT CODE connection **/returnthis.socketClient.connect({reconnect: true,//whether the client should try to reconnectdelay: 2000,//time in milliseconds to wait between each reconnection attempt, cumulativemaxDelay: 15000,//the maximum delay time in milliseconds between reconnectionsretries: 10//number of reconnection attempts})
Is such a thing possible using hapiJS/nes ? Or is there another plugin we need to register to instead that would work like hapiJS/nes but with polling experience ?
My dearest apologies for doubling this in hapi ( hapijs/hapi#4287 ), I realized after posting, this was more relevant to hapijs/nes and not hapijs as a whole.
The text was updated successfully, but these errors were encountered:
Hello! There is no long-polling functionality that goes along with nes. You may be interested in susie, which has some similarities to nes but uses server-sent events rather than websockets. That isn't long-polling either, but it's a bit closer! Socket.io can also be used with hapi servers, though you wouldn't get the tight integration with hapi routes and authentication that nes provides.
If you're interested in charting the path to supporting long-polling in nes, a proposal for how that would work would be welcome!
Support plan
Context
How can we help?
I looked at docs, as ell as open/closed issue using the 'polling' keyword and couldn't find how to add a polling fallback on hapijs such as this exists on library like socket.io.
We would want to use the publish/subscribe method as well as the hapiJS request with 'post/get' method.
Is such a thing possible using hapiJS/nes ? Or is there another plugin we need to register to instead that would work like hapiJS/nes but with polling experience ?
My dearest apologies for doubling this in hapi ( hapijs/hapi#4287 ), I realized after posting, this was more relevant to hapijs/nes and not hapijs as a whole.
The text was updated successfully, but these errors were encountered: