File Explorer

/var/runtime/node_modules/@aws-sdk/node_modules/@httptoolkit/websocket-stream

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

server.js611 B · 30 lines
'use strict' var WebSocketServer = require('ws').Servervar stream = require('./stream') class Server extends WebSocketServer{  constructor(opts, cb) {    super(opts)     var proxied = false    this.on('newListener', function(event) {      if (!proxied && event === 'stream') {        proxied = true        this.on('connection', function(conn, req) {          this.emit('stream', stream(conn, opts), req)        })      }    })     if (cb) {      this.on('stream', cb)    }  }} module.exports.Server = Servermodule.exports.createServer = function(opts, cb) {  return new Server(opts, cb)}