hapijs / nes

WebSocket adapter plugin for hapi routes
Other
502 stars 87 forks source link

Stop new connections at server shutdown #245

Closed cvvspb closed 6 years ago

cvvspb commented 6 years ago

Hello! Could you please suggest how to stop clients from reconnecting (or reject new connections) during server shutdown? Thanks!

mtharrison commented 6 years ago

You can switch off reconnection by setting retries to 0 when calling client.connect([options]).

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.