surrealdb.java icon indicating copy to clipboard operation
surrealdb.java copied to clipboard

Feature: Handle json array response from server in refactored WS plaintext protocol

Open phughk opened this issue 2 years ago • 0 comments

Is your feature request related to a problem?

The SurrealDB protocol can return json arrays for requests of multiple statements. We currently only handle single responses (i.e. JsonObject). We should be able to handle JsonArray.

Describe the solution

In the SurrealDBWebsocketClientProtocolHandler in channelRead0 we should handle the branch for JsonArray response type.

Alternative methods

None.

SurrealDB version

1.0.0-beta.9+20230821.0665e1b7 for macos on aarch64

Contact Details

[email protected]

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

phughk avatar Aug 21 '23 20:08 phughk