guile-websocket

guile-websocket provides an implementation of the WebSocket protocol as defined by RFC 6455.

Usage

Below is a simple example program that demonstrates basic usage of the guile-websocket API:

(use-modules (web socket server))

;; Respond to text messages by reversing the message.  Respond to
;; binary messages with "hello".
(define (handler data)
  (if (string? data)
      (string-reverse data)
      "hello"))

(run-server handler (make-server-socket #:port 9090))

Releases

Requirements

Installation

To build and install guile-websocket from source, run:

wget https://files.dthompson.us/releases/guile-websocket/guile-websocket-0.1.tar.gz
tar xf guile-websocket-0.1.tar.gz
cd guile-websocket-0.1
./configure
make
make install

License

GNU LGPLv3+

Git Repository

guile-websocket is developed using the Git version control system. The official repository is hosted at https://git.dthompson.us/guile-websocket.git.

To clone the repository, run:

git clone https://git.dthompson.us/guile-websocket.git

Community

Real-time discussion for guile-websocket can be found on the #guile channel on the Libera.chat IRC network

Contributing

Send patches and bug reports to davet@gnu.org.