Class NostrTURNDataEvent
java.lang.Object
org.ngengine.nostr4j.rtc.turn.NostrTURNEvent
org.ngengine.nostr4j.rtc.turn.NostrTURNDataEvent
-
Field Summary
Fields inherited from class NostrTURNEvent
KIND -
Method Summary
Modifier and TypeMethodDescriptionprotected org.ngengine.platform.AsyncTask<UnsignedNostrEvent> computeEvent(UnsignedNostrEvent event) static NostrTURNDataEventcreateOutgoing(NostrRTCLocalPeer localPeer, NostrRTCPeer remotePeer, NostrKeyPair roomKeyPair, String channelLabel, long vsocketId, byte[] encryptionKey) org.ngengine.platform.AsyncTask<Collection<ByteBuffer>> decodeFramePayloads(ByteBuffer frame) org.ngengine.platform.AsyncTask<ByteBuffer> encodeToFrame(Collection<ByteBuffer> payloads) org.ngengine.platform.AsyncTask<ByteBuffer> encodeToFrame(Collection<ByteBuffer> payloads, int messageId) protected longlongstatic NostrTURNDataEventparseIncoming(SignedNostrEvent event, NostrRTCLocalPeer localPeer, NostrRTCPeer remotePeer, NostrKeyPair roomKeyPair, String channelLabel, long envelopeVsocketId) protected booleanorg.ngengine.platform.AsyncTask<SignedNostrEvent> toEvent()Methods inherited from class NostrTURNEvent
getEnvelopeMessageId, getLocalPeer, getRemotePeer, getRoomKeyPair, toEncodedHeader, toPowEvent, toUnsignedEvent
-
Method Details
-
createOutgoing
public static NostrTURNDataEvent createOutgoing(NostrRTCLocalPeer localPeer, NostrRTCPeer remotePeer, NostrKeyPair roomKeyPair, String channelLabel, long vsocketId, byte[] encryptionKey) -
parseIncoming
public static NostrTURNDataEvent parseIncoming(SignedNostrEvent event, NostrRTCLocalPeer localPeer, NostrRTCPeer remotePeer, NostrKeyPair roomKeyPair, String channelLabel, long envelopeVsocketId) -
getVsocketId
public long getVsocketId() -
computeEvent
protected org.ngengine.platform.AsyncTask<UnsignedNostrEvent> computeEvent(UnsignedNostrEvent event) - Specified by:
computeEventin classNostrTURNEvent
-
toEvent
- Overrides:
toEventin classNostrTURNEvent
-
encodeToFrame
- Overrides:
encodeToFramein classNostrTURNEvent
-
encodeToFrame
public org.ngengine.platform.AsyncTask<ByteBuffer> encodeToFrame(Collection<ByteBuffer> payloads, int messageId) -
shouldIncludeRoutingTags
protected boolean shouldIncludeRoutingTags()- Overrides:
shouldIncludeRoutingTagsin classNostrTURNEvent
-
getEnvelopeVsocketId
protected long getEnvelopeVsocketId()- Overrides:
getEnvelopeVsocketIdin classNostrTURNEvent
-
decodeFramePayloads
public org.ngengine.platform.AsyncTask<Collection<ByteBuffer>> decodeFramePayloads(ByteBuffer frame)
-