OpenDataVBB / vdv-453-client

Subscribe to realtime public transport data from a VDV 453/454 API.
ISC License
5 stars 0 forks source link

make subscription handling more robust: persist state, follow protocol spec more closely, etc. #3

Open derhuerst opened 2 months ago

derhuerst commented 2 months ago

I will update this tracking Issue with the current state as changes are made.

improve general state handling

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L188

persist state

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L151-L160

follow protocol spec more closely

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L155

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L196-L202

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L188

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L424-L426

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/server.js#L201-L211

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L237-L238

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L261-L262

add more events about what's happening

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L184-L185

https://github.com/OpenDataVBB/vdv-453-client/blob/0ace9f3a48b981278f78107fd5fbeead4b09ccfa/index.js#L261-L262

improve debug logging

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L164

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L226

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L253

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/index.js#L518

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/server.js#L131

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/server.js#L138

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/server.js#L154

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/send-request.js#L143

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/send-request.js#L171-L175

https://github.com/OpenDataVBB/vdv-453-client/blob/8104cfd1c20eb0e0eebb4dbbc2112d0c15c0dfb2/lib/send-request.js#L223