Skip to content

Conversation

@sw-joelmut
Copy link
Collaborator

Addresses #4684
#minor

Description

This PR updates the INodeSocket type to support the latest Node types. Additionally, it adds a new INodeDuplex interface, to address an issue where either express or restify provided a Duplex socket.

Specific Changes

  • Remove INodeSocket properties, and inherit them from net.Socket directly.
  • Added INodeDuplex that inherits from stream.Duplex.
  • Updated express and restify adaptive integrations to support INodeDuplex.
  • Updated BotFrameworkHttpAdapter, CloudAdapter to support INodeDuplex, and avoid casting from Duplex to Socket.
  • Updated WebSockets and NamedPipes to better support INodeSocket type.

Testing

The following image shows how the sample now supports the Duplex type.
imagen

@sw-joelmut sw-joelmut requested a review from a team as a code owner October 15, 2024 12:54
@coveralls
Copy link

coveralls commented Oct 15, 2024

Pull Request Test Coverage Report for Build 11346498083

Details

  • 1 of 3 (33.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 85.242%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/botframework-streaming/src/namedPipe/namedPipeClient.ts 0 2 0.0%
Totals Coverage Status
Change from base Build 11237135309: 0.0%
Covered Lines: 20444
Relevant Lines: 22942

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit f96195b into main Oct 29, 2024
@tracyboehrer tracyboehrer deleted the southworks/fix/inodesocket branch October 29, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants