We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to use debug in handler and it's not working. How to fix it? Code:
debug
... const agcBrokerClient = require('agc-broker-client'); const log = require('debug')('asyngular'); // <-- DECLARE const ENVIRONMENT = process.env.ENV || 'dev'; ... ... ... // Asyngular/WebSocket connection handling loop. (async () => { for await (let {socket} of agServer.listener('connection')) { // Handle socket connection. console.log('connect', socket); // <-- work log('connect'); // <-- NOT work (async () => { // Set up a loop to handle remote transmitted events. for await (let data of socket.receiver('customRemoteEvent')) { console.log('customRemoteEvent', JSON.stringify(data)); // <-- work log('customRemoteEvent %o', data); // <-- NOT work } })(); } })(); ... ...
The text was updated successfully, but these errors were encountered:
Does it work outside of the async IIFE?
Sorry, something went wrong.
No branches or pull requests
I try to use
debug
in handler and it's not working. How to fix it?Code:
The text was updated successfully, but these errors were encountered: