Skip to content
New issue

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

TypeError: Cannot read properties of null (reading 'send') #697

Open
ptahchiev opened this issue Jan 2, 2024 · 0 comments
Open

TypeError: Cannot read properties of null (reading 'send') #697

ptahchiev opened this issue Jan 2, 2024 · 0 comments

Comments

@ptahchiev
Copy link

So I have successfully implemented strophejs on my website - it connects to my openfire server, and chatting works fine. I am also using the ping plugin to ping the server every 45 seconds because my openfire is behind NGINX and NGINX drops connections after 60 seconds (even websocket ones).
This all works fine now, however, when I leave the website for some time and eventually I get this error:

Cannot read properties of null (reading 'send')
TypeError: Cannot read properties of null (reading 'send')
    at Websocket._onIdle (http://localhost:3000/static/js/bundle.js:173882:25)
    at Connection._onIdle (http://localhost:3000/static/js/bundle.js:171869:19)
    at Connection.flush (http://localhost:3000/static/js/bundle.js:170742:12)
    at Websocket._send (http://localhost:3000/static/js/bundle.js:173984:18)
    at Connection.send (http://localhost:3000/static/js/bundle.js:170727:19)
    at Connection.sendIQ (http://localhost:3000/static/js/bundle.js:170864:12)
    at F.ping (http://localhost:3000/static/js/bundle.js:174218:15)
    at http://localhost:3000/static/js/bundle.js:10906:33

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant