|
@@ -290,7 +290,7 @@ function OnConnection( socket ) {
|
|
|
|
|
|
socket.emit( 'message', {
|
|
socket.emit( 'message', {
|
|
action: "createNode",
|
|
action: "createNode",
|
|
- parameters: [ "http://vwf.example.com/clients.vwf" ],
|
|
|
|
|
|
+ parameters: [ "proxy/clients.vwf" ],
|
|
time: global.instances[ namespace ].getTime( )
|
|
time: global.instances[ namespace ].getTime( )
|
|
} );
|
|
} );
|
|
|
|
|
|
@@ -327,7 +327,7 @@ function OnConnection( socket ) {
|
|
//Create a child in the application's 'clients.vwf' global to represent this client.
|
|
//Create a child in the application's 'clients.vwf' global to represent this client.
|
|
var clientNodeMessage = {
|
|
var clientNodeMessage = {
|
|
action: "createChild",
|
|
action: "createChild",
|
|
- parameters: [ "http://vwf.example.com/clients.vwf", socket.id, clientDescriptor ],
|
|
|
|
|
|
+ parameters: [ "proxy/clients.vwf", socket.id, clientDescriptor ],
|
|
time: global.instances[ namespace ].getTime( )
|
|
time: global.instances[ namespace ].getTime( )
|
|
};
|
|
};
|
|
|
|
|
|
@@ -426,7 +426,7 @@ function OnConnection( socket ) {
|
|
}
|
|
}
|
|
|
|
|
|
// Notify others of the disconnecting client. Delete the child representing this client in the application's `clients.vwf` global.
|
|
// Notify others of the disconnecting client. Delete the child representing this client in the application's `clients.vwf` global.
|
|
- var clientMessage = { action: "deleteChild", parameters: [ "http://vwf.example.com/clients.vwf", socket.id ], time: global.instances[ namespace ].getTime( ) };
|
|
|
|
|
|
+ var clientMessage = { action: "deleteChild", parameters: [ "proxy/clients.vwf", socket.id ], time: global.instances[ namespace ].getTime( ) };
|
|
for ( var i in global.instances[ namespace ].clients ) {
|
|
for ( var i in global.instances[ namespace ].clients ) {
|
|
var client = global.instances[ namespace ].clients[ i ];
|
|
var client = global.instances[ namespace ].clients[ i ];
|
|
if ( ! client.pending ) {
|
|
if ( ! client.pending ) {
|
|
@@ -508,7 +508,7 @@ function GetClientDescriptor( socket ) {
|
|
// Set the default prototype.
|
|
// Set the default prototype.
|
|
|
|
|
|
if ( ! descriptor.extends ) {
|
|
if ( ! descriptor.extends ) {
|
|
- descriptor.extends = "http://vwf.example.com/client.vwf";
|
|
|
|
|
|
+ descriptor.extends = "proxy/client.vwf";
|
|
}
|
|
}
|
|
|
|
|
|
return descriptor;
|
|
return descriptor;
|