GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — #692 Add the possibility to specify "Sec-WebSocket-Protocol" by KaSSaaaa · Pull Request #693 · CrowCpp/Crow

Conversation

@KaSSaaaa

@KaSSaaaa KaSSaaaa commented Jul 29, 2023

Copy link
Copy Markdown
Contributor

I took the liberty to add some documentation as well. Feel free if you have any feedback :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MichaelSB reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
KaSSaaaa added 2 commits July 29, 2023 22:49
@KaSSaaaa
CrowCpp#692 Add possibility to specific Sec-WebSocket-Protocol
eacb751
@KaSSaaaa
CrowCpp#692 Add documentation
b44310e
MichaelSB
MichaelSB reviewed Jul 29, 2023
View reviewed changes
Comment thread include/crow/websocket.h Resolved

Uh oh!

There was an error while loading. Please reload this page.

@MichaelSB

MichaelSB commented Jul 29, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

I could use your split function in my websocket compression PR, if yours is merged first :D

KaSSaaaa reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KaSSaaaa added 2 commits July 30, 2023 10:05
@KaSSaaaa
CrowCpp#692 Not using find_first_of as it is a C++ 17 function
0241466
@KaSSaaaa
CrowCpp#692 Not using find_first_of as it is a C++ 17 function
e3da955
@KaSSaaaa

KaSSaaaa commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

I rewrote find_first_of algorithm and put it in utility.h :)

MichaelSB reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MichaelSB

MichaelSB commented Jul 30, 2023

Copy link
Copy Markdown
Contributor

If I don't miss it, I think a getter is needed for the selected subprotocol in the connection. Otherwise looks good to me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KaSSaaaa

KaSSaaaa commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

Currently, the "subprotocol_" is only a private variable and is only used in the Connection::start but I can add a getter in the interface and implementation if it's needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KaSSaaaa
CrowCpp#692 Added get_subprotocol getter
4b48a13
@MichaelSB

MichaelSB commented Jul 30, 2023

Copy link
Copy Markdown
Contributor

I think that's it :) I asked for the getter, because users must be able to know which subprotocol was selected and probably switch code paths accordingly.

KaSSaaaa reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cschreib
cschreib reviewed Aug 8, 2023
View reviewed changes
Comment thread include/crow/routing.h Resolved

Uh oh!

There was an error while loading. Please reload this page.

@KaSSaaaa
CrowCpp#642 CR : use const& instead of && for subprotocols parameter
5342dd6
keith-dev
keith-dev reviewed Jan 2, 2024
View reviewed changes
Comment thread include/crow/websocket.h Resolved

Uh oh!

There was an error while loading. Please reload this page.

KaSSaaaa and others added 2 commits January 13, 2024 20:47
@KaSSaaaa
Merge branch 'CrowCpp:master' into ws-subprotocols
06d68ce
@KaSSaaaa
CrowCpp#692 Remove closing of the WebSocket if no subprotocol is matc…
ebd1708
…hing
@gittiver

gittiver commented Jan 16, 2024

Copy link
Copy Markdown
Member

build fails on ubuntu at least, other os will run later.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KaSSaaaa
CrowCpp#692 Fix missing include <algorithm>
3287ee9
@KaSSaaaa

KaSSaaaa commented Jan 16, 2024

Copy link
Copy Markdown
Contributor Author

Apparently missed the include of for utility::find_first_of ...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gittiver
gittiver requested a review from The-EDev January 18, 2024 15:44
@gittiver
gittiver requested a review from mrozigor January 29, 2024 17:03
@gittiver gittiver added the feature Code based project improvement label Jan 30, 2024
mrozigor
mrozigor reviewed Mar 9, 2024
View reviewed changes
Comment thread include/crow/websocket.h Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mrozigor

mrozigor commented Mar 9, 2024

Copy link
Copy Markdown
Member

May I ask you also to add unit tests?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KaSSaaaa
KaSSaaaa force-pushed the ws-subprotocols branch from 4d185dc to 3287ee9 Compare September 7, 2024 20:06
KaSSaaaa and others added 2 commits September 7, 2024 22:07
@KaSSaaaa
Merge branch 'CrowCpp:master' into ws-subprotocols
56233c7
@KaSSaaaa
CrowCpp#692 Add unit test for subprotocol
8192bdb
@KaSSaaaa

KaSSaaaa commented Sep 7, 2024

Copy link
Copy Markdown
Contributor Author

@mrozigor Sorry about the delay, been quite busy lately and totally forgot about that... Let me know if you need more tests !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mrozigor
mrozigor approved these changes Sep 10, 2024
View reviewed changes
@gittiver
gittiver merged commit 210cbfd into CrowCpp:master Sep 10, 2024
@BrewTestBot BrewTestBot mentioned this pull request Feb 21, 2025
crow 1.2.1.2 Homebrew/homebrew-core#208536
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mrozigor mrozigor mrozigor approved these changes
@The-EDev The-EDev Awaiting requested review from The-EDev
+3 more reviewers
@MichaelSB MichaelSB MichaelSB left review comments
@cschreib cschreib cschreib left review comments
@keith-dev keith-dev keith-dev left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

feature Code based project improvement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@KaSSaaaa @MichaelSB @gittiver @mrozigor @cschreib @keith-dev
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.