160 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
0
answers
147
views
How do I properly use Libwebsockets' JSON parser (LEJP)?
Trying to figure out how the built-in JSON parser in libwebsockets works. From my understanding of the documentation, you're supposed to call lejp_parse(), giving it a JSON-formatted string and a ...
-2
votes
1
answer
103
views
Libwebsockets client not see response on POST request
Minimal client (code below) send POST request, but not see response from the server. After LWS_CALLBACK_CLIENT_HTTP_WRITEABLE client waiting about 15 seconds and reset session. I see server answer in ...
1
vote
0
answers
33
views
libwebsockets exhibits abnormal behavior after cross-compilation(ARM V7)
I made a simple client using libwebsockets,and the program runs perfect when compiled with gcc into a x86 elf on my ubuntu.But when I tried to compile the program to my rockchip RV1106 board using its ...
2
votes
1
answer
652
views
Receiving Websocket data on separate threads with libwebsocket
I'm trying to set up two websocket connections that receive on different threads. I'm aware that only one lws_context should exist, but on https://libwebsockets.org/, they say that you can have n ...
1
vote
1
answer
303
views
How to make Libwebsockets lws_protocols call proper callback depending on protocol name
This following code is derived from Libwebsockets server site example.
It is working, but for some reason LWS_CALLBACK_RECEIVE always gets into callback_http(), in case of below javascript.
How can ...
-1
votes
1
answer
363
views
How to pass private ssl key from HSM(alogorithm pkcs11) to ssl enabled websocket server using libwebsockets library for the c++ project [closed]
I am trying to create a websocket client in my c++ project. i was trying to use libwebsockets library to implement the same. websocket server is ssl enabled. I got this working by hard coding the ssl ...
0
votes
0
answers
314
views
libpthread.so.0: error adding symbols: DSO missing from command line even after providing -lpthreads in cmake file
I am trying to cross compile libwebsocket for arm-oe-linux-gnueabi but getting the error
/opt/arm-oe-linux-gnueabi-generic/bin/../lib/gcc/arm-oe-linux-gnueabi/4.9.4/../../../../arm-oe-linux-gnueabi/...
0
votes
1
answer
1k
views
How to proxy websocket and http over lighttpd to different ports?
I have 2 separate applications. One is based on libwebsockts which works on port 8081 and the other based on libmicrohttpd which runs on port 8080. Both of these services run on localhost.
What I am ...
1
vote
0
answers
532
views
How to fix CLIENT_CONNECTION_ERROR: tls: error:00000001:lib(0):func(0):reason(1) [libwebsockets][IBM Watson Text to Speech]
I'm trying to connect to IBM Watson Text to Speech API's Websocket using libwebsockets. I based my code on a simple websocket client found on iamscottmoyers / simple-libwebsockets-example / client.c.
...
0
votes
1
answer
370
views
Binance Futures with libwebsockets is not working
I'm making a C++ application that would get the price information from Binance Futures via WebSockets. To achieve my goal I use Yair Gadelov's websockets wrapper project, which is based on ...
1
vote
0
answers
130
views
Building libwebsockets for OP-TEE
I've been trying to build libwebsockets for OP-TEE running on a TI AM437x HS (an arm platform). I'm using Yocto to build; here's the version string for OP-TEE, which is displayed on boot:
I/TC: OP-TEE ...
1
vote
0
answers
290
views
libwebsockets throws CLIENT_CONNECTION_ERROR: Unable to connect when performing Ping operation
I have sort of hit a dead end. Can someone please help.
I have never used libwebsockets before. I have an RPI4(Installed Ubuntu 22.04), where my code is running which tries to ping my Laptop(Windows ...
0
votes
0
answers
64
views
how to innovate boost beast .../gcc-11/debug/cxxstd-2a-iso/threading-multi/visibility-hidden/advanced-server-flex-awaitable?
I built the boost 1.81.0 library, then compiled boost::beast on Linux Ubuntu 22.04 with c++20 (cxxstd 2a). out of this library I wish to learn how to work with 100% (almost) CPU-s on multiple
web-...
0
votes
1
answer
211
views
Is there any way to close idle socket.io connections for too long?
Is there any way to close idle socket.io connections ? or I need to track from my client side. My socket.io version is 4.4.1
0
votes
1
answer
681
views
Libwebsockets: keep SSL context disabled and provide one from the modem
I've recently been passed an embedded project where an MCU uses libwebsockets (version 3.1.0) to setup a websockets client. The MCU is connected to a SIMCOM modem for 4g connectivity.
Up until now the ...