Code Monkey home page Code Monkey logo

websub's Introduction

WebSub

A WebSub client for Haskell

Overview

This library is a work in progress! The plan is to provide an easy-to-use interface for subscribing to WebSub topics in Haskell web applications. Basic subscription works, and an example application can be found in app/Main.hs.

Subscription

The following diagram shows how the subscription can change state.

Subscription state changes

Contributing

I've just started hacking on this, so if you're interested in helping out or giving feedback, post an issue and we'll take it from there.

Code Style

This project uses hindent to do consistent formatting. You can run hindent on all source files like so:

make indent

License

Mozilla Public License v2.0.

websub's People

Contributors

owickstrom avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

websub's Issues

Renewal

To avoid the the subscription expiring (see #7), users should be able to periodially renew the subscription. Perhaps the library can take care of this itself, even.

Timeout subscription

Based on lease_seconds from the hub, this library should set a timer to expire the subscription locally. Perhaps some notification to the user of the library would be nice, but not sure how that fits in with the current design.

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.