@act/ws

0.0.2 • Public • Published

Act
A simple reactive front-end framework

 


Act ws

Act ws hello world:

import main from '@act/main'
import fromSocket from '@act/ws/fromSocket'

const socket = fromSocket('ws://socket-server.com')

const view = (model) =>
  ['main', [
  	['button', { click: socket.emit('ping') }, 'Ping']
  	model
  ]]

const subscriptions = { pong: socket.on('pong') }

main(view, { model: 'No pong yet', subscriptions })

More

The documentation for this module is part of Act's docs.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i @act/ws

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • act