Azure / azure-relay-java

Azure Relay Java SDK
MIT License
8 stars 9 forks source link

Can't write or read text data using the rendezvous connection #80

Closed giventocode closed 1 year ago

giventocode commented 2 years ago

There isn't seem a way to write text data to the rendezvous connection.

listener.acceptConnectionAsync().join() returns HybridConnectionChannel, which I can cast to WebSocketChannel as that is the underlying type. However, the method I need, CompletableFuture<Void> writeAsync(Object data, Duration timeout, boolean isEnd, WriteMode mode), is not public.

Similarly, the ``readTextAsync``` method is not public, hence there is no way to read text messages.