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

BESU-128: Fix WebSocket frames handling #210

Merged
merged 3 commits into from
Nov 22, 2019

Conversation

lucassaldanha
Copy link
Member

PR description

  • Updated WebSocketService (handle -> textMessageHandle)
  • Updated WebSocketRequestHandler to accept String instead of Buffer

* Updated WebSocketService (handle -> textMessageHandle)
* Updated WebSocketRequestHandler to accept String instead of Buffer

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
@@ -182,4 +185,34 @@ public void handleLoginRequestWithAuthDisabled() {
request.putHeader("Content-Type", "application/json; charset=utf-8");
request.end("{\"username\":\"user\",\"password\":\"pass\"}");
}

@Test
public void webSocketDoesNotToHandlePingPayloadAsJsonRpcRequest(final TestContext context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, it would have taken me way longer to figure out how to test this. 👍

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
@lucassaldanha lucassaldanha merged commit beb9d0b into hyperledger:master Nov 22, 2019
@lucassaldanha lucassaldanha deleted the besu-128 branch November 22, 2019 00:31
sambacha added a commit to blockarraygroup/besu that referenced this pull request Nov 22, 2019
BESU-128: Fix WebSocket frames handling (hyperledger#210)

Co-authored-by: Lucas Saldanha <lucas.saldanha@consensys.net>
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
* Updated WebSocketService (handle -> textMessageHandle)
* Updated WebSocketRequestHandler to accept String instead of Buffer

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
edwardmack pushed a commit to ChainSafe/besu that referenced this pull request Feb 4, 2020
* Updated WebSocketService (handle -> textMessageHandle)
* Updated WebSocketRequestHandler to accept String instead of Buffer

Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
Signed-off-by: edwardmack <ed@edwardmack.com>
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.

2 participants