You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is the proper way either, but if you set log4js up as a global variable (drop var from var log4js = require('log4js'); to look like: log4js = require('log4js');) you don't need to modify the wstun source.
Example:
log4js = require('log4js')
var wstun = require("@mdslab/wstun");
reverse_server = new wstun.server_reverse();
reverse_server = new wstun.server_reverse({ssl:true, key:"key", cert:"key.pub"});
reverse_server.start(443);
Hi, I am not sure I use this module correctly.
I installed it by npm then try to create new server in my JS application. But I got "log4js is not defined error". Did I miss something?
To fix it, I manually add
var log4js = require('log4js');
to the source code.The text was updated successfully, but these errors were encountered: