Need help with wslay?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tatsuhiro-t
479 Stars 105 Forks MIT License 227 Commits 23 Opened issues

Description

The WebSocket library in C

Services available

!
?

Need anything else?

Contributors list

# 259
C++
ftp
bittorr...
cpp11
177 commits
# 144,392
Shell
C
CSS
client-...
7 commits
# 46,006
Shell
scp
curl
Perl
5 commits
# 24,523
Django
sqlite3
pypi
kafka-c...
3 commits
# 50,460
scp
curl
Perl
libcurl
2 commits
# 27,638
emacs-l...
elisp
complet...
zsh-com...
1 commit
# 203,435
Shell
websock...
MATLAB
Kuberne...
1 commit
# 505,441
C++
C
websock...
Shell
1 commit
# 503,291
C#
C
websock...
1 commit
# 18,209
C
Shell
Perl
quic
1 commit
# 22,988
Shell
gRPC
c-plus-...
c-sharp
1 commit
# 88,207
HTML
Markdow...
Bootstr...
kubeadm
1 commit
# 595,063
C
websock...
Perl
Shell
1 commit
# 15,916
C
gamedev...
vulkan
c-plus-...
1 commit
# 26,758
couchba...
bandwid...
Nim
pony-la...
1 commit

Wslay - The WebSocket library

Project Web: https://tatsuhiro-t.github.io/wslay/

Wslay is a WebSocket library written in C. It implements the protocol version 13 described in

RFC 6455 
_. This library offers 2 levels of API: event-based API and frame-based low-level API. For event-based API, it is suitable for non-blocking reactor pattern style. You can set callbacks in various events. For frame-based API, you can send WebSocket frame directly. Wslay only supports data transfer part of WebSocket protocol and does not perform opening handshake in HTTP.

Wslay supports:

  • Text/Binary messages.
  • Automatic ping reply.
  • Callback interface.
  • External event loop.

Wslay does not perform any I/O operations for its own. Instead, it offers callbacks for them. This makes Wslay independent on any I/O frameworks, SSL, sockets, etc. This makes Wslay portable across various platforms and the application authors can choose freely I/O frameworks.

See Autobahn test reports:

server 
_ and
client 
_.

Requirements

Sphinx 
_ is used to generate man pages.

To build and run the unit test programs, the following packages are needed:

  • cunit >= 2.1

To build and run the example programs, the following packages are needed:

  • nettle >= 2.4

Build from git

Building from git is easy, but please be sure that at least autoconf 2.68 is used.::

$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.