MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster-server / bindFailureHandlers

Function bindFailureHandlers

test/integration.js:137–152  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

135};
136
137function bindFailureHandlers(server) {
138 if (LOG_ERRORS) {
139 (async () => {
140 for await (let {error} of server.listener('error')) {
141 console.error('ERROR', error);
142 }
143 })();
144 }
145 if (LOG_WARNINGS) {
146 (async () => {
147 for await (let {warning} of server.listener('warning')) {
148 console.warn('WARNING', warning);
149 }
150 })();
151 }
152}
153
154describe('Integration tests', function () {
155 beforeEach('Prepare options', async function () {

Callers 1

integration.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…