Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-1099 Add close() to client. Add integration tests. #3

Merged
merged 1 commit into from
Nov 11, 2015

Conversation

evanweible-wf
Copy link
Contributor

Issue

  • No way to close the SockJS client.
  • No tests.

Changes

Source:

  • Add a close([int code, String reason]) method to Client.
    • Calls .close() on the underlying WebSocket instance if websocket protocol is being used
    • Calls ._didClose() on the Client if xhr-streaming protocol is being used

Tests:

  • Integration tests added for..
    • default configuration (no protocol whitelist specified)
    • websocket protocol
    • xhr-streaming protocol

Areas of Regression

  • closing of underlying transport

Testing

  • pub get && pub run dart_dev test

Code Review

@trentgrover-wf
@maxwellpeterson-wf
@dustinlessard-wf
@jayudey-wf

fyi: @bryonmarks-wf @thieupham-wf @katiesullivan-wf

@rmconsole-wf
Copy link

General Information

Ticket(s): CP-1099
Code Review(s): #3
CI:
Automation: Could not find automation run associated with this pull.

SOC 1 Checklist

  • All commits reviewed
  • QA Review
  • Security review completed for all commits if applicable: (N/A)

RM Checklist

  • Ticket(s) Verified
  • Smithy build successful (no build info found)
  • Smithy run in past 24 hours (no build info found)
  • Smithy run against most recent commit (no build info found)
  • Total danger score is less than 500 and each file has danger score less than 100
  • Unit Tests Updated
    • Tests updated for .dart code changes
    • Tests updated for .js code changes

Additional Information

Reviewers: trentgrover-wf, jayudey-wf, maxwellpeterson-wf
Watchlist Notifications: None

Automatically Identified Dependencies: smithy not yet complete

    When this pull is merged I will use the following information:
    Version: sockjs-dart-client 1.0.0
    Release Ticket(s): CP-1096

Last updated on Wednesday, November 11 04:16 PM CST

@maxwellpeterson-wf
Copy link
Member

+1

@jayudey-wf jayudey-wf changed the title Add close() to client. Add integration tests. Add close to client. Add integration tests. Nov 9, 2015
@jayudey-wf jayudey-wf changed the title Add close to client. Add integration tests. CP-1099 Add close to client. Add integration tests. Nov 9, 2015
@jayudey-wf jayudey-wf changed the title CP-1099 Add close to client. Add integration tests. Add close() to client. Add integration tests. Nov 9, 2015
@trentgrover-wf
Copy link

+1

@jayudey-wf jayudey-wf changed the title Add close() to client. Add integration tests. CP-1099 Add close() to client. Add integration tests. Nov 10, 2015
@trentgrover-wf
Copy link

@jayudey-wf ready for merge

@jayudey-wf
Copy link
Contributor

QA Resource Approval: +10

  • Testing instruction
  • Dev +1's
  • Dev/QA +10 with detail of what was tested
    • tests pass as expected with pub run dart_dev test --integration
  • Unit test created/updated
  • All unit tests pass

Merging into master.

jayudey-wf added a commit that referenced this pull request Nov 11, 2015
CP-1099 Add close() to client. Add integration tests.
@jayudey-wf jayudey-wf merged commit ac07d83 into master Nov 11, 2015
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.

5 participants