HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - DataChannelEvents

Home > @rainway/web > DataChannelEvents

DataChannelEvents interface

Signature:

export interface DataChannelEvents 

Properties

PropertyModifiersTypeDescription
close() => void | Promise<void>Raised when the data channel is closed

Methods

MethodDescription
message(message)

Raised when a message arrives via the data channel.

If message.respond !== undefined, the remote peer expects a response, and you should call message.respond(payload) to respond.