Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
217 views

Gentoo Linux. Node v22.13.1. bun --watch ./uws/uws.js 17 | 18 | module.exports = (() => { 19 | try { 20 | return require('./uws_' + process.platform + '_' + process.arch + '_' + ...
CodeGust's user avatar
  • 864
0 votes
1 answer
141 views

Whenever a new client connects, a new std::string instance is created in heap inside the .message callback and set with a value sent by the client (the message object). I can see the memory (RSS tab) ...
falero80s's user avatar
  • 428
1 vote
1 answer
529 views

I'm tyring to create a minimal example of a server/client using the uwebsocket lib. On my attempt below the server is getting on, it outputs "Server listening on port 9001", but the client ...
Laila's user avatar
  • 73
0 votes
2 answers
287 views

I'm trying to build a project which links to openssl Using CMake. I'm getting errors at the linking stage. One of the shared libraries cannot find certain openssl functions even tho that shared ...
Tom Shaw's user avatar
0 votes
1 answer
115 views

I've been trying for hours to make the uWebSockets library work but I have no clue now. When using this code: #include <App.h> struct UserData { }; int main() { uWS::App().ws<UserData&...
Haumikj Haumer's user avatar
0 votes
1 answer
311 views

I'm developing a websoscket server for an embedded system. The requirements are very simple: send updates to a list of signals ids the webapp subscribes to. Everything works fine until the crash ...
Simone's user avatar
  • 13
2 votes
0 answers
241 views

My project structure is as follows uwebsockets/ (git-submodule) - src - uSockets - boringssl - ... - lsquic - ... - ... - examples - ... - ... entry.cpp src/ - ....
BlobKat's user avatar
  • 320
5 votes
0 answers
2k views

I'm porting a python application over to C++. As I'm not incredibly familiar with C++ I was wondering if there are any benchmark test result out there for websocket latency between the two libraries ...
Zercon's user avatar
  • 155
1 vote
1 answer
719 views

uWS::App::WebSocketBehavior<data> WebSocketBehavior; WebSocketBehavior.open = [](uWS::WebSocket<false, true, data> *ws) { }; After opening a websocket, I want ...
user19213592's user avatar
0 votes
1 answer
479 views

Screenshot of terminal logs On the client side I use y-websocket and Y.js and the server side uses uWebsocket. Every 30 seconds the client disconnects and reconnects immediately afterwards. No ...
iohn's user avatar
  • 103
2 votes
1 answer
584 views

I'm using Bun + Elysia and they are using uWebSockets.js. I use Postman to test, when i make connection it opens with one id number but when i close it closes with other ID number. Should the ID's be ...
Marius's user avatar
  • 2,026
0 votes
0 answers
639 views

I have the following directory structure for my project that utilizes uWebsockets and I am trying to run the example provided by in uWebsockets examples folder. Interestingly, uWebsockets does not ...
shashashamti2008's user avatar
4 votes
2 answers
3k views

I want to use uWebSockets for my own project which uses CMake. There are two issues for me: uWebSocket uses Make as well as I think its own build system/file build.c? It depends itself on other ...
jack's user avatar
  • 1,832
5 votes
0 answers
649 views

I am using laravel soketi package. And I dont want to use laravel-echo for client connection. So, I am testing with firecamp. But not able to connect. Soketi is up and running with 🎉 Server is up ...
amit's user avatar
  • 373
0 votes
2 answers
2k views

I'm using uWebSocket.js and tried to get the payload from an API. I have checked its official GitHub site related to routes. I checked and implemented all the way explained in that and it works fine. ...
Sachin Shah's user avatar
  • 4,563
0 votes
1 answer
100 views

I have implemented a simple uWebsockets server that is listening on a certain port. Lets say I have added some resource paths to the Webserver(ex: /test1, /test2) so the server is listening and a ...
Janith Priyankara's user avatar
2 votes
1 answer
3k views

The same as in question I wonder if it is possible to use: socket-io-client: https://www.npmjs.com/package/socket.io-client with uWebsockets.js server: https://github.com/uNetworking/uWebSockets ...
Malwafro's user avatar
3 votes
0 answers
2k views

Recently, I've been trying to get uWebSockets working, but I have absolutely no idea how to compile it in order to add it to my project in the include directory. The furthest I've been able to get was ...
Ayush Garg's user avatar
  • 2,547
0 votes
2 answers
2k views

I am setting up an HTTP server in C++ using the uWebSockets library and I would like to add a middleware to serve static files, similar to what app.use(express.static(path.join(__dirname, 'public'))); ...
Fillyjonk's user avatar
  • 176
3 votes
1 answer
8k views

What is the recommended way to install the library uWebSockets (https://github.com/uNetworking/uWebSockets) and be able to compile the accompanying examples ? I have tried the solution provided here: ...
Henry's user avatar
  • 123
3 votes
0 answers
1k views

I have a Visual Studio C++ project that is making use of uWebSockets. The Visual Studio project file is configured to output a .dll that is used during runtime of a host executable. I need some of ...
ariestav's user avatar
  • 2,977
0 votes
0 answers
29 views

I have been having a lot of difficulty trying to get a simple HTTP server built in to my application. It will be communicating only with other servers on the same local network, so SSL/TLS is not ...
Matthew Cornelisse's user avatar
1 vote
1 answer
529 views

I have a NodeJs application and I want to use uWebSockets. The problem is that I have a predefined custom HTTP server that I must use. I wanted to know if its possible to inject our custom HTTP server ...
Tal Humy's user avatar
  • 1,247
1 vote
0 answers
529 views

I have the following uWebsockets application: const app = uWS.App({}).ws("/*", { message: (ws, bytes, isBinary) => { invariant(isBinary, "Websocket messages must be binary"...
Foobar's user avatar
  • 8,659
1 vote
1 answer
1k views

I currently have a C++ web sockets server using uWebSockets. I want to scale it horizontally using Redis. It means that I'll use this Redis client. However, I'm facing a problem with the ...
Bastien Faivre's user avatar
0 votes
0 answers
2k views

I am trying to install few libraries that are required for cmake to build a project. For successful build, cmake requires libuv and uWebSockets libraries to be installed: https://github.com/...
Umang Agarwal's user avatar
0 votes
1 answer
442 views

I have created a minimal app for testing deploying a node.js uWebsockets.js server on heroku with a dockerfile. Heroku logs shows that it fails with R10 (boot timeout) error, failed to bind to $PORT, ...
manjunatha bairi's user avatar
0 votes
0 answers
479 views

I have an existing KOA server, and would like to use uWebSockets.js for a part of it (like chat functionality and other kind of direct notifications) I see that uWebSockets.js can run as a standalone ...
bukso's user avatar
  • 1,386
4 votes
0 answers
491 views

Hello friends of Stackoverflow, I am using the uWebsockets.js library for a realtime app. This library, a performance-based replacement for the original Websockets library, provides a users a few ...
solutionhacker's user avatar
0 votes
1 answer
601 views

We're using websockets (specifically uws.js on Node.js) to run a multiplayer quiz. The server's running on an AWS t2.micro in the eu-west-2a region, but recently, we've been seeing some incredibly ...
v_flashpoint's user avatar
1 vote
1 answer
913 views

I am using uWebSockets to do a project. What I need to do is get the sender IP address out of incoming HTTP Requests. In the documentation I can see IP address can be taken out from the WebSockets. Do ...
Janith Priyankara's user avatar
0 votes
1 answer
2k views

I have to open with the obligatory, I'm pretty trash at c++, fresh out of college. I setup uWebsocket as a server, it's currently just echoing responses back to the client. I am trying to setup a ...
Tacne's user avatar
  • 13
0 votes
0 answers
66 views

I'm trying to compile this code using Qtcreator: uWS::App().ws<PerSocketData>("/*", { /* Settings */ .compression = uWS::DEDICATED_COMPRESSOR_3KB, ....
Majid's user avatar
  • 527
7 votes
0 answers
3k views

I'm using primarily C++ and want to implement server-client communication for a project. While not well-versed in distributed computing, I've tried various tool combinations like SocketIO server (in ...
Lorah Attkins's user avatar
0 votes
1 answer
643 views

I'm ussing uwebsockets to create ws server. main.cpp: int main() { struct UserData { }; uWS::App().ws<UserData>("/*", { /* Just a few of the available handlers */ ....
SinoDawn's user avatar
0 votes
1 answer
569 views

My project has linked uwebsockets. linked libs: C:/Users/Sunway/.conan/data/zlib/1.2.11/_/_/package/a955db98e980a5ab86ae50d6df8bfee361185c27/lib/libzlib.a; C:/Users/Sunway/.conan/data/libuv/1.41.0/_/_/...
SinoDawn's user avatar
1 vote
1 answer
2k views

On my server based on uWebSocket.js, I'm using a parameterized path like /socket/:name. How do I capture the actual path used? For instance, if the socket was connected to /socket/one, I'd like to be ...
raimohanska's user avatar
  • 3,463
1 vote
1 answer
4k views

I'm using uWebSockets on my nodejs app and I'm trying to send some http requests to the wss server. I can see the output of the GET routes on the wss server by accessing them from browser url bar, but ...
DIIMIIM's user avatar
  • 600
3 votes
1 answer
323 views

I have this package in my package.json: "uWebSockets.js": "github:uNetworking/uWebSockets.js#v18.9.0", when trying to install this package within docker with npm i -> works ...
BB_KING's user avatar
  • 155
0 votes
1 answer
614 views

ive tried out a websocket library today called uwebsockets. my code is just the one of the provided examples on their github. int main() { struct PerSocketData { }; std::vector<std::thread*> ...
jordieok2's user avatar
1 vote
0 answers
483 views

I currently trying to setup the development environment in Visual studio for an extended kalman filter. I have installed all the required header files and libraries through vcpkg and also linked them ...
Adarsh Raj's user avatar
0 votes
1 answer
316 views

I'm trying to add uWebSockets as a dependency in my conan.txt conan install .. returns the following error: ERROR: uwebsockets/18.3.0: Invalid configuration: uwebsockets requires a compiler that ...
Calvin1602's user avatar
  • 9,535
0 votes
1 answer
768 views

I've cloned uWebSockets, wrote the following file. #include <App.h> #include <iostream> int main() { uWS::App() .get("/*", [](auto *res, auto *req) { ...
Rocky's user avatar
  • 547
4 votes
3 answers
2k views

I'm trying to receive a multipartform-data stream which might include various files and fields and to write the files to a directory (uWebsockets.js server). I have this code: let boundary = null; ...
Daniel Shlomo's user avatar
3 votes
0 answers
423 views

I'm using uWebSockets C++ trying to return a binary buffe. When I do res->end(...) it sends and empty response, here's my code: .get("/binaryfile", [](auto *res, auto *req) { ...
leonardorame's user avatar
  • 1,161
1 vote
1 answer
1k views

for the sake of simplicity, let's assume I have only one uWebSockets instance running on my server: struct UserData { uWS::WebSocket<true, uWS::SERVER> *ws; bool logged_in = false; ID ...
guy's user avatar
  • 197
2 votes
1 answer
2k views

I'm new to c++ and i miss many knowledge about it. Mostly i get the work done by try and error. But now i stuck on setting up a test project for a websocket server using uWebSockets. Badly there is ...
Manuel Richarz's user avatar
3 votes
2 answers
6k views

uWebSockets https://github.com/uNetworking/uWebSockets How to use this from Visual Studio C++ ? I wish to implement a simple websocket server. I don't want to use Makefile, wish to use normal visual ...
Phil's user avatar
  • 50.9k
0 votes
3 answers
3k views

What are the techniques or strategies behind the "room" based WebSocket connection or "broadcast" option in WebSocket? Do we store "user's WebSocket connection ID" in a specific list for a room-based ...
John Cargo's user avatar
  • 2,191
1 vote
1 answer
4k views

I want to use uWebSockets(UWS) in my C++ project to transfer images over the network. The setup will be running on multiple operating systems, so the best way of creating the build files seemed like ...
hevele's user avatar
  • 945