Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Initial pass at Transport._connect #6

Merged
merged 9 commits into from
Aug 10, 2022
Merged

Conversation

John-LittleBearLabs
Copy link
Contributor

No description provided.

src/transport.ts Outdated Show resolved Hide resolved
source: Source<Uint8Array> = pushable();
sink: Sink<Uint8Array, Promise<void>>;
source: Source<Uint8ArrayList> = pushable();
sink: Sink<Uint8ArrayList | Uint8Array, Promise<void>>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ckousik - please look at these changes, to be in compliance with the latest Stream interface

src/stream.ts:36:3 - error TS2416: Property 'sink' in type 'WebRTCStream' is not assignable to the same property in base type 'Stream'.
  Type 'Sink<Uint8Array, Promise<void>>' is not assignable to type 'Sink<Uint8ArrayList | Uint8Array, Promise<void>>'.
    Type 'Uint8ArrayList | Uint8Array' is not assignable to type 'Uint8Array'.
      Type 'Uint8ArrayList' is missing the following properties from type 'Uint8Array': BYTES_PER_ELEMENT, buffer, byteOffset, copyWithin, and 21 more.

36   sink: Sink<Uint8Array, Promise<void>>;

@John-LittleBearLabs John-LittleBearLabs marked this pull request as ready for review August 10, 2022 15:37
@John-LittleBearLabs
Copy link
Contributor Author

@ckousik I think we can afford to merge this into develop at this point, agree?

@ckousik
Copy link
Collaborator

ckousik commented Aug 10, 2022 via email

@John-LittleBearLabs John-LittleBearLabs merged commit 0ce1b0a into develop Aug 10, 2022
@ddimaria ddimaria linked an issue Aug 12, 2022 that may be closed by this pull request
17 tasks
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement webrtc in js-libp2p
2 participants