Ejabberd MUC room not sending unavailable presence for disconnected users

I’m running ejabberd 19.09.1 using the official Docker image, configured for anonymous authentication with mod_muc. Clients generally connect to the server in the browser, through a WebSocket endpoint. ejabberd is sitting behind an nginx reverse proxy. When a client disconnects uncleanly (e.g. by killing the browser tab), I immediately see a message in the log…

Details

Eslint not working with the TypeScript syntax

I am trying to configure eslint for my REACT-TypeScript project. It was previously using tslint which is going to deprecate soon. I have gone through the web and finally was able to create my .eslintrc.json: { “parser”: “@typescript-eslint/parser”, “parserOptions”: { “ecmaFeatures”: { “jsx”: true }, “project”: “./tsconfig.json”, “ecmaVersion”: 2018, “sourceType”: “module” }, “env”: { “browser”:…

Details

MarkLogic Node.js npm module cannot process >400 error status

I’m using Marklogic npm module v2.1.1 with my express(v4.16.4) Node app. In my controller function I’m using the db.eval method to return the data along with necessary status code using function xdmp.setResponseCode(). Please find the below code snippet // controller function function getNewsArticleById(db: any, fileName: string, req: any, res: any, next: any) { return db.eval(…

Details