Web SDK - DataChannelMode

Home > @rainway/web > DataChannelMode

DataChannelMode enum

A "reliability mode" for a custom-created data channel, which controls the reliability of the traffic over that channel.

Signature:

export declare enum DataChannelMode 

Enumeration Members

MemberValueDescription
Reliable1Use a reliable transport channel: packets will be retransmitted if they go missing, and are guaranteed to be received in the order they were sent in.
Unreliable0Use an unreliable transport channel: packets will not be retransmitted if they go missing, and may be received in a different order than they were sent in.