ros-foxglove-bridge icon indicating copy to clipboard operation
ros-foxglove-bridge copied to clipboard

Move C++ websocket server code back to ws-protocol repo

Open jtbandes opened this issue 2 years ago • 7 comments

Fix https://github.com/foxglove/ros-foxglove-bridge/issues/89

@jacob said:

https://github.com/foxglove/ros-foxglove-bridge/issues/89#issuecomment-2343714056

this sounds nice, but am I remembering correctly that the ros folks were against FetchContent in the build process? or did we find some agreeable workaround?

Comment on #89 Move C++ websocket server code back to ws-protocol repo

jtbandes avatar Nov 30 '22 17:11 jtbandes

I suggest moving this issue to https://github.com/foxglove/ws-protocol since the result would be a PR to that repo and no change to this repo.

jhurliman avatar Nov 30 '22 17:11 jhurliman

I'd rather not have two copies of the code and have to keep them in sync, so the result should also include deleting the version in this repo. (hence "move" in the title)

jtbandes avatar Nov 30 '22 17:11 jtbandes

It sounds like time for a monorepo

image

amacneil avatar Dec 20 '22 08:12 amacneil

Which implementation of the websocket protocol is most up-to-date/newer? It seems this one has more recent commits than this repo no?

jlack1987 avatar Sep 08 '24 17:09 jlack1987

Which implementation of the websocket protocol is most up-to-date/newer? It seems this one has more recent commits than this repo no?

This repo basically uses a copy of the C++ server code in https://github.com/foxglove/ws-protocol, with only a few minor differences.

I'm not sure if there is an elegant way to add ws-protocol as a build dependency remove the server code in this pacakge. Maybe we could do so using FetchContent?

achim-k avatar Sep 11 '24 13:09 achim-k

Yeah it's doable via the FetchContent stuff in cmake. I actually did just that on that repo a few days ago. That's when I ran into this repo as well and got confused. Some minor cmake mods are needed though on ws-protocol to ensure some of websocketpp's dependencies are available(zlib, openssl, and boost iirc). Very easy stuff to do though

jlack1987 avatar Sep 11 '24 13:09 jlack1987