old_contents: import { Server } from 'ws'
  import debugLog from '../../debugLog.js'
  import serverlessLog from '../../serverlessLog.js'
  import { createUniqueId } from '../../utils/index.js'
  
  export default class WebSocketServer {
    constructor(options, webSocketClients, sharedServer) {
      this._options = options
  
      this._server = new Server({
        server: sharedServer,
      })
  
      this._webSocketClients = webSocketClients
  
      this._server.on('connection', (webSocketClient, request) => {
        console.log('received connection')
  
        const connectionId = createUniqueId()
  
        debugLog(`connect:${connectionId}`)
  
        this._webSocketClients.addClient(webSocketClient, request, connectionId)
      })
    }
  
    async start() {
      const { host, httpsProtocol, websocketPort } = this._options
  
      serverlessLog(
        `Offline [websocket] listening on ws${
          httpsProtocol ? 's' : ''
        }://${host}:${websocketPort}`,
      )
    }
  
    // no-op, we're re-using the http server
    stop() {}
  
    addRoute(functionKey, webSocketEvent) {
      this._webSocketClients.addRoute(functionKey, webSocketEvent.route)
      // serverlessLog(`route '${route}'`)
    }
  }
  
new_contents: import { Server } from 'ws'
  import debugLog from '../../debugLog.js'
  import serverlessLog from '../../serverlessLog.js'
  import { createUniqueId } from '../../utils/index.js'
  
  export default class WebSocketServer {
    constructor(options, webSocketClients, sharedServer) {
      this._options = options
      this._webSocketClients = webSocketClients
  
      const server = new Server({
        server: sharedServer,
      })
  
      server.on('connection', (webSocketClient, request) => {
        console.log('received connection')
  
        const connectionId = createUniqueId()
  
        debugLog(`connect:${connectionId}`)
  
        this._webSocketClients.addClient(webSocketClient, request, connectionId)
      })
    }
  
    async start() {
      const { host, httpsProtocol, websocketPort } = this._options
  
      serverlessLog(
        `Offline [websocket] listening on ws${
          httpsProtocol ? 's' : ''
        }://${host}:${websocketPort}`,
      )
    }
  
    // no-op, we're re-using the http server
    stop() {}
  
    addRoute(functionKey, webSocketEvent) {
      this._webSocketClients.addRoute(functionKey, webSocketEvent.route)
      // serverlessLog(`route '${route}'`)
    }
  }
  
subject: Remove "private" field