Skip to content

Node/Javascript implementation of Websockets for Solid

Notifications You must be signed in to change notification settings

solidpayorg/node-solid-ws

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Node/Javascript implementation of Websockets for Solid

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%