Giter Club home page Giter Club logo

chicken-websockets's Introduction

websockets

A fast, lightweight websockets server implementation. Supports version 13 of the core websocket protocol.

Fork of the websockets egg to CHICKEN 5 scheme. Original module authored by Thomas Hintz with contributions from Seth Alves.

Installation

chicken-install in the repository root

Usage

See original websockets documentation for more information.

Quick start example

Launch the sample implementation from the test directory with

csi -s example.scm

Navigate to http://localhost:8080 to send and receive messages

Test

Passes sections 1-10 of the Autobahn websocket compliance test suite.

Build and start the echo server:

csc -O3 echo-server.scm;./echo-server

Run the test suite against the listening server from another terminal:

docker run -it --rm \
    -v "${PWD}/test:/config" \
    -v "${PWD}/reports:/reports" \
    --net="host" \
    crossbario/autobahn-testsuite \
    wstest --mode fuzzingclient --spec /config/ws-test.spec

Changelog

  • Replaced various imported modules to CHICKEN 5 compatible modules
  • Repackaged setup to declarative egg syntax
  • Fix out-of-range exception when constructing u8vector from 2 byte close code
  • Fix error for non-toplevel definitions outside of a body context (shift)
  • Validated against autobahn test suite
  • Formatting, indentation

License

BSD-3-Clause, see LICENSE

chicken-websockets's People

Contributors

thomashintz avatar turnerdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.