Skip to content

Netgear/simple-libwebsockets-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-libwebsockets-example

A simple libwebsockets example.

Like http://ahoj.io/libwebsockets-simple-websocket-server I found the libwebsockets examples here https://github.com/warmcat/libwebsockets/blob/master/test-server too complicated.

I wanted to be able to serve a simple html file and also have a C client send some data to the server so created this.

Build

make

Run

In one terminal run:

./server

In another terminal run:

./client

Then navigate to localhost:8000 in your web browser. You should see a random number being updated every second.

About

Simple libwebsockets Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.8%
  • HTML 11.0%
  • Makefile 5.2%