Questions tagged [uwebsockets]

51 questions
11
votes
1 answer

Using websocket compression with uWebSockets.js and Websocket-Sharp

We have a mobile game using websocket for connections. The server is a Node.js app using uWebSockets.js library and the client is a Unity app using Websocket-Sharp library. They both play well together and we didn't have encountered an issue with…
Arash
  • 3,013
  • 10
  • 52
  • 74
4
votes
0 answers

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 and running! The Websockets server is available…
amit
  • 353
  • 1
  • 3
  • 19
4
votes
0 answers

Client for uWebSockets

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 JS) + a C++ client library, or IXWebSocket. I also…
Lorah Attkins
  • 5,331
  • 3
  • 29
  • 63
4
votes
3 answers

Reading multipartform-data stream correctly (NodeJS)

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; let fields = []; let streams = []; …
4
votes
1 answer

websockets on GKE with istio gives 'no healthy upstream' and 'CrashLoopBackOff'

I am on GKE using Istio version 1.0.3 . I try to get my express.js with socket.io (and uws engine) backend working with websockets and had this backend running before on a 'non kubernetes server' with websockets without problems. When I simply…
3
votes
0 answers

uWebSockets returning a binary buffer

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
  • 1,131
  • 4
  • 18
  • 35
3
votes
2 answers

How to fix "fatal error: 'sys/epoll.h' file not found" in OSX?

I was trying to link uWebSocket in MacOs Xcode due to this guide https://medium.com/@tabvn/c-how-to-linking-uwebsocket-in-macos-xcode-9-ef3ffea880e4 but, when I tried to install uWebSocket, I got error EpollEvent.h not found! Can anybody help me…
Mohsen
  • 51
  • 1
  • 3
3
votes
0 answers

how to use uWebSockets push data to client actively?

uWebsockets c++ h.onMessage([](WebSocket *ws, char *message, size_t length, OpCode opCode) { printf("$"); char msg[1024] = "113.25|27.25|25.2"; message = msg; length = strlen(msg); ws->send(message, length, opCode); …
3
votes
1 answer

Compilation of µWebSockets has failed and there is no pre-compiled binary

I am trying to run a local websocket server using nodejs and uws on a linux machine. the npm install uws runs without any error and I can see a uws named folder inside my node_modules. But when I try to create websocket server using following code.…
Suresh Prajapati
  • 3,991
  • 5
  • 26
  • 38
2
votes
1 answer

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 libraries of which some use CMake others Make. I…
jack
  • 1,658
  • 1
  • 7
  • 18
2
votes
0 answers

uWebSockets static library installed via vcpkg but dll are still needed for executable on Windows

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 uWebSockets' functionality for my .dll. I want…
ariestav
  • 2,799
  • 4
  • 28
  • 56
2
votes
1 answer

Private npm package fails to install with `npm ci` , but works with `npm i` why?

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 but with npm ci i get: npm ERR! Host key verification failed First of all,…
BB_KING
  • 145
  • 2
  • 13
2
votes
1 answer

uWebSockets undefined references in eclipse cpp ide

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 no installation documentation available and it is…
Manuel Richarz
  • 1,916
  • 13
  • 27
2
votes
2 answers

Can't run uWebSockets on CentOS 7 with glibc-2.17

Error: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /root/workspace/backend/node_modules/uWebSockets.js/uws_linux_x64_72.node) Latest glibc version for CentOS 7 is 2.17. I know that latest version for CentOS 8 is 2.30 but I can't…
Dmitriy
  • 159
  • 2
  • 12
2
votes
1 answer

Sending data to uWebSockets 0.15.x sockets from another thread

I'm using uWebSockets version 0.15.x to accept and manager web socket connections on a server. I have one thread calling uWS::TemplatedApp::run to handle this. I need to send data to all open web sockets from another thread. My understanding is that…
devx
  • 307
  • 1
  • 14
1
2 3 4