question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to define WebSocket Extensions

See original GitHub issue

Environment Details

  • Helidon Version: 2.0.0-M2
  • Helidon SE or Helidon MP: MP
  • JDK version: N/A
  • OS: N/A
  • Docker version (if applicable):

Problem Description

WebSocket implementation does not permit defining of installed extensions. This is predicated on another change being performed in Tyrus before this can work: (eclipse-ee4j/tyrus#694).

I think the change would be overriding the #getInstalledExtensions method in here but not sure of how the actual Extension classes should be passed/loaded into it.

Steps to reproduce

N/A

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dansivitercommented, Apr 18, 2020

I’ve submitted a PR to Tyrus to link this to WebsocketContainer#getInstalledExtensions (eclipse-ee4j/tyrus#695). With this it should just be a case of overriding TyrusServerContainer#getInstalledExtensions in TyrusSupport.

0reactions
barchettacommented, Sep 14, 2020

Implemented by PR #1934. Thanks @dansiviter

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebSocket extensions as plugins - The If Works
The Sec-WebSocket-Extensions header must be parsed and serialized according to an ABNF grammar that refers to grammars defined in HTTP. Either ...
Read more >
Writing WebSocket servers - Web APIs | MDN
Extensions control the WebSocket frame and modify the payload, while subprotocols structure the WebSocket payload and never modify anything.
Read more >
faye/websocket-extensions-node - GitHub
This library aims to allow a WebSocket extension to be written and used with any protocol library, by defining abstract representations of frames...
Read more >
WebSocket - The Modern JavaScript Tutorial
Sec-WebSocket-Extensions: deflate-frame means that the browser supports data compression. An extension is something related to transferring the ...
Read more >
WebSockets - A Conceptual Deep Dive - Ably Realtime
We cover what a WebSocket is, how WebSockets work, the challenges of building with WebSockets, and considerations for scaling WebSockets.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found