Package

purescript-wamp

Repository
kkazuo/purescript-wamp
License
MIT
Uploaded by
kkazuo

Build Status

purescript-wamp contains purescript bindings for Autobahn|JS.

Installation

npm i autobahn
bower i purescript-wamp

Usage

import Network.Wamp as Wamp

main = do
  conn <- Wamp.connection { realm: "realm1", url: "ws://example.com/ws" }
  conn # Wamp.onOpen \sess -> do
    sess # Wamp.pub1 "com.myapp.hello" "Hello, World!"
  conn # Wamp.open

You might setup example WAMP server with Crossbar.io Docker Image.

Documentation

Module documentation is published on Pursuit.