solid-ws
Web sockets for Solid
Last updated 2 months ago by michielbdejong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install solid-ws 
SYNC missed versions from official npm registry.

solid-ws

Node/Javascript implementation of Websockets for Solid

Usage

Simple way


var ldnode = require('ldnode')

var server = ldnode.createServer({live: true})

server.listen(port, function () {
  console.log('Solid server started')
})

Short way

var SolidWs = require('solid-ws')
var ldnode = require('ldnode')

var server = ldnode.createServer()
solidWs(server)

server.listen(port, function () {
  console.log('Solid server started')
})

Long way

var SolidWs = require('solid-ws')
var ldnode = require('ldnode')
var express = require('express')
var https = require('https')

var app = express()
app.use('/databox', ldnode())
var server = https.createServer({/* your settings*/}, app)

server.listen(port, function () {
  console.log('Solid server started')
})

// Attach WS to solid
solidWs(server, app)

Current Tags

  • 0.4.2                                ...           latest (2 months ago)

15 Versions

  • 0.4.2                                ...           2 months ago
  • 0.4.1                                ...           2 months ago
  • 0.4.0                                ...           6 months ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Downloads
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 23
Dependencies (4)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |