HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

.NET SDK - DataChannel.Request

DataChannel.Request method (1 of 2)

Sends a binary message via this data channel, expecting a response.

public Task<byte[]> Request(byte[] data)
parameterdescription
databinary request payload

See Also


DataChannel.Request method (2 of 2)

Sends a text message via this data channel, by encoding it as UTF-8. Expects a remote response, which is decoded as UTF-8 upon receipt.

public Task<string> Request(string text)
parameterdescription
textrequest payload

See Also