58 questions
1 vote
2 answers
221 views
Bun with uWebSockets -- node version error on Linux
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 + '_' + ...
0 votes
1 answer
141 views
The memory doesn't seem to be freed when deleting an object allocated in the heap. What am I missing here? [closed]
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) ...
1 vote
1 answer
530 views
How to create a websocket server/client using the uwebsocket lib?
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 ...
0 votes
2 answers
289 views
cmake Link to OpenSSL failing undefined reference to openssl functions
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 ...
0 votes
1 answer
115 views
no instance of function template "uWS::CachingApp<SSL>::ws [with SSL=false]" matches the argument list, uWebSockets
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&...
0 votes
1 answer
312 views
uWebSockets C++ error on send(): cork buffer must not be acquired without checking cancork
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 ...
2 votes
0 answers
242 views
Correct way to build uwebsocket dependencies on windows 11 for MinGW?
My project structure is as follows uwebsockets/ (git-submodule) - src - uSockets - boringssl - ... - lsquic - ... - ... - examples - ... - ... entry.cpp src/ - ....
5 votes
0 answers
2k views
boost::beast vs uwebsockets library performance c++
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 ...
1 vote
1 answer
723 views
How do I periodically send data over a websocket with uWebSockets and C++?
uWS::App::WebSocketBehavior<data> WebSocketBehavior; WebSocketBehavior.open = [](uWS::WebSocket<false, true, data> *ws) { }; After opening a websocket, I want ...
0 votes
1 answer
479 views
Websocket disconnects and connects every 30 seconds + sends messages randomly
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 ...
2 votes
1 answer
587 views
uWebSockets.js opens with one ID but closes with other ID
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 ...
0 votes
0 answers
639 views
Issue building C++ example provided by uWebsockets using CMake
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 ...
4 votes
2 answers
3k views
Integrating uWebSockets into a CMake project
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 ...
5 votes
0 answers
649 views
How to connect to laravel soketi from other client except laravel-echo?
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 ...
0 votes
2 answers
2k views
How to get Body from API using uWebSocket.js?
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. ...