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
The JSON-RPC transport agnostic. The current implementation uses an auto-increment number (which always starts from zero) as the id value. This is appropriate for a point-to-point type transport (e.g. socket based protocols), but for MQTT, for example, this could potentially cause problems when the server replies are received by all clients, and clients start sending requests at the same time but with different parameters (but with same id started from zero). JSON-RPC states that the id can be of string type. If clients were able to choose a unique string value specific to them as the id value, it could be safely used with MQTT in all cases.
The text was updated successfully, but these errors were encountered:
This is to support using this package to write a dart analyzer LSP client, which requires String ids.
Also closes#738
This is technically breaking because there was some code which tries to coerce string ids back into integers, but this should never have happened. Any server stringifying integer IDs is not spec compliant.
Let me know if we want to release this as non-breaking instead of breaking, I think it would be fine personally, but don't feel strongly either way.
The JSON-RPC transport agnostic. The current implementation uses an auto-increment number (which always starts from zero) as the id value. This is appropriate for a point-to-point type transport (e.g. socket based protocols), but for MQTT, for example, this could potentially cause problems when the server replies are received by all clients, and clients start sending requests at the same time but with different parameters (but with same id started from zero). JSON-RPC states that the id can be of string type. If clients were able to choose a unique string value specific to them as the id value, it could be safely used with MQTT in all cases.
The text was updated successfully, but these errors were encountered: