Web SDK - IRainwayHeader

Home > rainway-sdk > IRainwayHeader

IRainwayHeader interface

A header used by every datagram that goes over the transport from one Rainway peer to another.


export interface IRainwayHeader 


magicNumbernumberThe 4-byte "magic number" identifying this buffer as a Rainway datagram. This is always 0x79617752 ('Rway' as a FourCC).
sourcePeerIdbigintThe hostname of the peer that sent the datagram.
syncKeynumberA key value used to match up requests and responses. If you're sending a request, this should be a "new" key (++synckey). A response should have the same synckey value as the request.
targetPeerIdbigintThe hostname of the peer that will receive the datagram.