Title: RTS stop 3 by aquamoth · Pull Request #13 · jamesshore/lets_code_javascript · GitHub
Open Graph Title: RTS stop 3 by aquamoth · Pull Request #13 · jamesshore/lets_code_javascript
X Title: RTS stop 3 by aquamoth · Pull Request #13 · jamesshore/lets_code_javascript
Description: I suggest rewriting the cleanup logic to ask RealTimeServer to disconnect all open sockets before stopping the http server. This code is still somewhat a hack, because I don't quite understand why I need some setTimeout() wrappers around done, but I still think this is a lot better. Also the private variable RealTimeServer._disconnectAllCallback can be debated, but doing it like this we can keep numberOfActiveConnections() as a private method without explicit testing. This is my preferred PR of 3 to improve the shutdown logic.
Open Graph Description: I suggest rewriting the cleanup logic to ask RealTimeServer to disconnect all open sockets before stopping the http server. This code is still somewhat a hack, because I don't quite understand ...
X Description: I suggest rewriting the cleanup logic to ask RealTimeServer to disconnect all open sockets before stopping the http server. This code is still somewhat a hack, because I don't quite underst...
Opengraph URL: https://github.com/jamesshore/lets_code_javascript/pull/13
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2fbeff78-1023-7aef-9f68-716b94964a2a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C808:42376:144A32B:1A5E86F:69924A97 |
| html-safe-nonce | 41875d45c10068fdf97e57f57e9b864b9d738c2f44c9b0f6d74780e8edf8572b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODA4OjQyMzc2OjE0NEEzMkI6MUE1RTg2Rjo2OTkyNEE5NyIsInZpc2l0b3JfaWQiOiI2ODU1MDY3OTQ3MDkxNzc0MTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1dc2a0e4689c563738d7f0ac0c7e3904a4bc7108005f4a9bdc871bddb94ff402 |
| hovercard-subject-tag | pull_request:121655371 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/jamesshore/lets_code_javascript/pull/13/files |
| twitter:image | https://avatars.githubusercontent.com/u/5458487?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5458487?s=400&v=4 |
| og:image:alt | I suggest rewriting the cleanup logic to ask RealTimeServer to disconnect all open sockets before stopping the http server. This code is still somewhat a hack, because I don't quite understand ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/jamesshore/lets_code_javascript git https://github.com/jamesshore/lets_code_javascript.git |
| octolytics-dimension-user_id | 123129 |
| octolytics-dimension-user_login | jamesshore |
| octolytics-dimension-repository_id | 4981757 |
| octolytics-dimension-repository_nwo | jamesshore/lets_code_javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4981757 |
| octolytics-dimension-repository_network_root_nwo | jamesshore/lets_code_javascript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width