forked from cory/tildefriends
Get rid of the JS bits of tunnels.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4056 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
22
core/ssb.js
22
core/ssb.js
@ -226,28 +226,6 @@ ssb.addRpc(['room', 'attendants'], function(request) {
|
||||
g_attendants[request.connection.id] = request;
|
||||
});
|
||||
|
||||
ssb.addRpc(['tunnel', 'connect'], function(request) {
|
||||
if (!request.args[0].origin &&
|
||||
request.args[0].portal &&
|
||||
request.args[0].target) {
|
||||
let target_connection = ssb.getConnection(request.args[0].target);
|
||||
let target_request_number = target_connection.send_json({
|
||||
'name': ['tunnel', 'connect'],
|
||||
'args': [{
|
||||
'origin': request.connection.id,
|
||||
'portal': request.args[0].portal,
|
||||
'target': request.args[0].target,
|
||||
}],
|
||||
'type': 'duplex',
|
||||
});
|
||||
ssb.tunnel(request.connection, -request.request_number, target_connection, target_request_number);
|
||||
} else if (request.args[0].origin &&
|
||||
request.args[0].portal &&
|
||||
request.args[0].target) {
|
||||
ssb.createTunnel(request.connection.id, -request.request_number, request.args[0].origin);
|
||||
}
|
||||
});
|
||||
|
||||
function ebtReplicateSendClock(request, have) {
|
||||
var identities = ssb.getAllIdentities();
|
||||
var message = {};
|
||||
|
Reference in New Issue
Block a user