Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/purescript-wamp
PureScript bindings of Autobahn|JS
https://github.com/kkazuo/purescript-wamp
Last synced: about 14 hours ago
JSON representation
PureScript bindings of Autobahn|JS
- Host: GitHub
- URL: https://github.com/kkazuo/purescript-wamp
- Owner: kkazuo
- License: mit
- Created: 2017-01-21T17:00:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T12:12:16.000Z (almost 8 years ago)
- Last Synced: 2024-11-09T03:32:43.572Z (7 days ago)
- Language: PureScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-wamp
[![Build Status](https://travis-ci.org/kkazuo/purescript-wamp.svg?branch=master)](https://travis-ci.org/kkazuo/purescript-wamp)
`purescript-wamp` contains purescript bindings for [Autobahn|JS](http://autobahn.ws/js/).
## Installation
```
npm i autobahn
bower i purescript-wamp
```## Usage
``` purescript
import Network.Wamp as Wampmain = 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](https://hub.docker.com/r/crossbario/crossbar/).
## Documentation
Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-wamp/).