Skip to content

Commit 15c6fc0

Browse files
committed
Address comments
1 parent a197eb2 commit 15c6fc0

5 files changed

Lines changed: 7 additions & 107 deletions

File tree

lib/runtime/dispatcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Dispatcher {
2424
/**
2525
* @param {object} options
2626
* @param {import('../node.js')} options.node
27-
* @param {import('./registry.js').CapabilityRegistry} options.registry
27+
* @param {import('./capability_registry.js').CapabilityRegistry} options.registry
2828
*/
2929
constructor({ node, registry }) {
3030
if (!node) throw new TypeError('Dispatcher: options.node is required');
@@ -37,7 +37,7 @@ class Dispatcher {
3737
/**
3838
* Bind handlers for a freshly-accepted connection. The dispatcher takes
3939
* full ownership of the connection's lifecycle from this point on.
40-
* @param {import('./transport.js').Connection} conn
40+
* @param {import('./connection.js').Connection} conn
4141
*/
4242
handle(conn) {
4343
const state = {

lib/runtime/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
'use strict';
1010

11-
const { CapabilityRegistry } = require('./registry.js');
11+
const { CapabilityRegistry } = require('./capability_registry.js');
1212
const { Dispatcher } = require('./dispatcher.js');
13-
const { Connection, TransportAdapter } = require('./transport.js');
13+
const { Connection } = require('./connection.js');
14+
const { TransportAdapter } = require('./transport_adapter.js');
1415
const { WebSocketTransport } = require('./transports/ws.js');
1516

1617
/**

lib/runtime/transport.js

Lines changed: 0 additions & 102 deletions
This file was deleted.

lib/runtime/transports/ws.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
const { WebSocketServer } = require('ws');
1212
const debug = require('debug')('rclnodejs:runtime:ws');
13-
const { Connection, TransportAdapter } = require('../transport.js');
13+
const { Connection } = require('../connection.js');
14+
const { TransportAdapter } = require('../transport_adapter.js');
1415

1516
/**
1617
* A {@link Connection} backed by a single `ws.WebSocket`. JSON-encodes every

0 commit comments

Comments
 (0)