Questions tagged [libwebsockets]

Libwebsockets is a lightweight pure C library built to use minimal CPU and memory resources and to provide fast throughput in both directions.

Libwebsocket is a lightweight pure library built to use minimal CPU and memory resources and to provide fast throughput in both directions. It provides server and client APIs for v13 protocol, along with / serving. It can be configured to use or CyaSSL to provide fully encrypted client and server links including client certificate support.

Architectural features like zero-copy for payload data and FSM-based protocol parsers make it ideal for realtime operation on resource-constrained devices. Moreover, its -clean, reliable and robust. It's licensed under LGPL2 +.

You should use this tag if your question is related with Libwebsocket library or its APIs.

161 questions
0
votes
2 answers

connecting to an endpoint whose IP is not public

I developed a decentralized gaming app, where players connecting to the backend from GUI using websockets. On my test environment my backend nodes have static public IP's, so I'm able to establish the websocket connections and test the game. I'm…
sg777
  • 159
  • 6
0
votes
0 answers

Abort trap: 6 - Libwebsocket Mac

Good afternoon, I am trying to compile and execute this code. It turns out that it compiles and executes perfect, but when it comes to hitting from the FRONT (I am using Angular), it breaks me when I enter a nickname, that is, the server connection…
0
votes
0 answers

Qt Wrapper class on libWebSockets - not emitting a signal from the callback method

I am writing a WebSocket client application, based on the example, where the client application needs to pass the WebSocket Protocol while establishing connection with the server. Since QtWebSockets does not support the Websocket protocols, I am…
user12345
  • 661
  • 8
  • 34
0
votes
1 answer

libwebsockets stops processing to read incoming packets

I am building a client/server protocol using libwebsockets library. In the poll thread, each callback on incoming packets triggers a certain method to either save data, respond accordingly, and so on. However, if there are other incoming packets…
0
votes
1 answer

libwebsocket server with openSSL not accepting connection

I have written web socket server with the help of (libwebsocket library )which accepts web socket client connection for non SSL. Now I wanted it to accept SSL connection so I have generated the self signed certificate and key, while creating web…
Kuldeep More
  • 138
  • 3
  • 14
0
votes
0 answers

Libwebsocket read large message

I'm trying to receive huge amount of data from libwebsocket. case LWS_CALLBACK_RECEIVE: { lws_write(wsi, in, len, LWS_WRITE_TEXT); break; } But this code just send small portions of the data by couple messages. So they are chunked by…
xercool
  • 883
  • 1
  • 8
  • 24
0
votes
0 answers

noPoll Websocket non-blocking handler

We are writing a C++ application which uses Websocket. Since it is used in embedded system, we are using lightweight noPoll C library. Everything works fine if you are doing it in a blocking manner: ctx = nopoll_ctx_new(); listener =…
Cactus'as
  • 70
  • 10
0
votes
0 answers

Unable to run minimal-ws-client-echo

I'm currently trying to run a minimal example linked below: https://github.com/warmcat/libwebsockets/tree/master/minimal-examples/ws-client/minimal-ws-client-echo for libwebsockets with a simple Python http server on localhost:7681. I'm getting an…
hotzjacobb
  • 13
  • 6
0
votes
0 answers

Installing libwebsockets on OS X

I apologize as I’m not very good with installation/using the terminal and I’m currently stuck with my installation. I really appreciate the help. I’ve installed cmake and OpenSSL (I used Homebrew to install OpenSSL). The message I get for the error…
hotzjacobb
  • 13
  • 6
0
votes
1 answer

c client call ibm-watson api with libwebsockets

I'am using libwebsockets library to create a c client which call ibm- watson speech to text server. So i've used minimal-ws-client-rx exemple…
e_mall app
  • 5
  • 1
  • 4
0
votes
1 answer

Trouble enabling libuv compilation with libwebsockets

I want to use libwebsockets in a foreign libuv loop. My code (inspired from this simple example) compiles and links correctly, but at execution, on webpage request, the browser never receives a response from the server. I build both libwebsockets…
Silverspur
  • 891
  • 1
  • 12
  • 33
0
votes
0 answers

web socket connection couldn't be established in android instant app by libwebsockets

My game couldn't establish websocket connection in Google Play Instant Game environment. It works in installed app, but not in instant app. The game is built by cocos creator, it use libwebsockets to create websocket connection. The log is shown…
lee
  • 61
  • 5
0
votes
1 answer

writing partial data with libwebsockets

I'm using the libwebsockets v2.4. The doc seems unclear to me about what I have to do with the returned value of the lws_write() function. If it returns -1, it's an error and I'm invited to close the connection. That's fine for me. But when it…
Guid
  • 2,137
  • 2
  • 20
  • 33
0
votes
0 answers

getting web_socket error while running python project

I getting this error while running this project https://github.com/victordibia/skyfall Traceback (most recent call last): File "app.py", line 19, in from utils import web_socket_client File…
0
votes
0 answers

Where to put libwebsocket.h file

I'm trying to test the libwebsockets API https://github.com/warmcat/libwebsockets/tree/master/minimal-examples/api-tests/api-test-lws_tokenize Whenever I type cmake . && make to build the code. I got following error. Scanning dependencies of…
Tim Paine
  • 11
  • 5