I'm trying to change the value of resource without success(in admin/config/nodejs/js). Whatever you fill in the form value, it's always returning '/socket.io'.
Looking in the nodejs.module:
function nodejs_get_config() {
$defaults = array(
'scheme' => variable_get('nodejs_server_scheme', 'http'),
'secure' => variable_get('nodejs_server_scheme', 'http') == 'https' ? 1 : 0,
'host' => variable_get('nodejs_config_host', 'localhost'),
'port' => variable_get('nodejs_config_port', '8080'),
'resource' => '/socket.io',
'authToken' => md5(session_id()),
'serviceKey' => variable_get('nodejs_config_serviceKey', ''),
);
return variable_get('nodejs_config', array()) + $defaults;
}
It should get the value from the database instead of provide a simple string.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | nodejs-socketio-resource-1334176-1.patch | 586 bytes | carnau |
Comments
Comment #1
carnau commentedPatch provided.
Comment #2
Anonymous (not verified) commentedyep, looks good, will review and commit soon.
Comment #3
Anonymous (not verified) commentedcommitted and pushed to 7.x-1.x:
http://drupalcode.org/project/nodejs.git/commit/71d7d6d
thanks!
moving to 6.x-1.x for julien to look at.
Comment #4
julien commentedThank you, commited to 6.x-1.x-dev.
Comment #5
Anonymous (not verified) commented