Skip to content

Commit

Permalink
renamed solidws in create-server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zg009 committed Jan 13, 2025
1 parent 86748d8 commit cbb4fc0
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/create-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const express = require('express')
const fs = require('fs')
const https = require('https')
const http = require('http')
const SolidWs = require('solid-ws')
const solidWs = require('solid-ws')
const debug = require('./debug')
const createApp = require('./create-app')
const globalTunnel = require('global-tunnel-ng')
Expand Down Expand Up @@ -99,8 +99,8 @@ function createServer (argv, app) {

// Setup Express app
if (ldp.live) {
const solidWs = SolidWs(server, ldpApp)
ldpApp.locals.ldp.live = solidWs.publish.bind(solidWs)
const solidWebsocket = solidWs(server, ldpApp)
ldpApp.locals.ldp.live = solidWebsocket.publish.bind(solidWebsocket)
}

return server
Expand Down
Loading

0 comments on commit cbb4fc0

Please sign in to comment.