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
1 answer

Libwebsockets 2.1.0 - It's illegal to do an lws_write outside of

I'm using libwebsockets-2.1.0 with generic session & lwsws option enabled. In case LWS_CALLBACK_SERVER_WRITEABLE I've got some code that opens a file, and output the content to websocket. static const char* filename = "/tmp/loop.log"; #define…
deojeff
  • 377
  • 6
  • 19
0
votes
1 answer

Libwebsockets returning 406 error for css and js files

I'm trying to add css files /usr/local/share/libwebsockets-test-server/ but for some reason, I'm getting 406 Not Acceptable error. I have checked the permission and both test.html and the css file inside css directory have 644 permission and both…
deojeff
  • 377
  • 6
  • 19
0
votes
1 answer

Close blocking client connection of webscokettpp client from C# UI application

I am using webscokettpp c++ client to read data posted from a web-server. I have a c# UI appication with a test button which calls c++ client dll to get and display the data posted on the socket. When test button is clicked data is posted properly…
DoIt
  • 313
  • 3
  • 12
0
votes
1 answer

NGINX - Websocket client support

A quick question, Does Nginx support websocket client. I have a webserver that uses NGINX and i use a websocket server for which NGINX acts as proxy. In the same port , can i use websocket client to initiate a connection with the external websocket…
buddy
  • 805
  • 1
  • 15
  • 30
0
votes
1 answer

How to include libmysql in libwebsocket coding?

I am trying to use libwebsocket to build up my WebSocket server and I need to used libmysql in my code. I have install the libmysql and able to use it but I don't know how to include it using cmake in CMakeList.txt I have include it in my…
kennyfung
  • 1
  • 1
0
votes
0 answers

When using a websocket wrapper, how is data "framed"?

I've been testing Caddy Server and Web Socket Daemon to see how easy it is to support WebSockets from a server environment. Both of these solutions are abstractions that use standard input/output from a command line program of your choosing (written…
magnus
  • 4,031
  • 7
  • 26
  • 48
0
votes
0 answers

building openssl for ARM

I am trying to build openSSL for my embedded board with ARM M4 running with a POSIX compliant OS (MQX). What I need is to build a libwebsocket library with openSSL support for the same environment. So what I am getting from all the web is openssl…
J Sparrow
  • 1
  • 2
0
votes
0 answers

Use code from executable API in dll

I'm using libwebsockets and lwsws to run an HTTP server and a Web Socket server, but it requires to write the web socket protocol code in a specific .dll plugin (HTTP provided by lib). Everything is developped with VS2015 (or VS2008). The code to…
A. Gille
  • 912
  • 6
  • 23
0
votes
1 answer

libwebsocket: test-server-echo fails with compiled library

I compiled libwebsockets v1.7-stable with the following options: cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/tmp/test -DLWS_WITH_ZLIB=0 -DLWS_WITHOUT_EXTENSIONS=1 -DLWS_WITH_SSL=0 When I tried to compile test-server-echo with this library, I've got the…
0
votes
0 answers

How to solve the linking error in libwebsockets

I use libwebsockets for a client program in C. Therefore I build the library for the libwebsocktes locally on my machine (ubuntu). After I want to Build the Project in Eclipse, I get the following output: 14:58:40 **** Incremental Build of…
BerndG88
  • 1
  • 1
0
votes
1 answer

How to connect a libwebsockets C client to a wsrelay server (node.js)

On my mac, I installed and run wsrelay $ wsrelay listening on port 8124... On my Ubuntu 14.04, I compiled and run a simple libwebsockets client connecting to the wsrelay #include #include #include #include…
zabumba
  • 12,172
  • 16
  • 72
  • 129
0
votes
1 answer

Installing libwebsocket.so shared library

I am having problems getting the libwebsockets.so shared library on a 32 bit system.I installed it from the git source on a 64-bit ubuntu without any problem. I tried to do the same on a 32-bit ubuntu 14.04 VM and 32 bit ubuntu lucid chroot. It…
kid
  • 140
  • 1
  • 10
0
votes
0 answers

libwebsocket errors out after 64 connections on windows

I am seeing strange behavior while using libwebsocket. As long as I keep the total number of simultaneous incoming websockets under 64 it works perfectly. However the moment there is one more incoming request "WSAWaitForMultipleEvents" returns with…
0
votes
1 answer

Building Mosquitto on Intel Edison can't find websockets library

I have successfully built libwebsockets based on instructions found in the README. When I try to build mosquitto 1.4.2 (based on instructions found here) with websockets enabled, I get the following error. …
Shay
  • 237
  • 1
  • 5
  • 12
0
votes
1 answer

Error when installing mosquitto with websockets on centos 7

I have followed the next steps: sudo yum groupinstall "Development Tools" sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel wget https://github.com/warmcat/libwebsockets/archive/v1.3-chrome37-firefox30.tar.gz tar zxvf…
arielmcm
  • 115
  • 1
  • 9
1 2 3
10
11