messenger only displaying messages on refresh
i have got the messenger system almost working.. but this final issue seems like something is not quite right..
WHen i send or receive messages they only display after i refresh the page.. unil then nothing happens.
Does anyone know why this might be?
-
-
i think the issue is with the certificate files.. At least i dont see a separate key and a private cert file.. I just have several .crt files, and have the same file for both variables. I dont see any key files in the /home/webgurul/ssl/certs folder. The relevant files i have to choose from are:
penamacor_network_webguru_live_92925_f13cf_1615247999_26a004d81c28f7315b7e49b9cb313934.crt
penamacor_network_webguru_live_c035a_2db31_1638961496_a8483a74aad46fe88221b1dd5bc54c8e.crt
penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt
penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt.cache
not sure what the .cache one above is i didn't try using it..This is what my config file looks like
{
/* Port on which you would like to run the server */
"port":5443,
/* development mode allows to see details of request and response in real time when server is running,
you may leave it empty when run the server in production */
"mode":"development",
/* This file will be used as log file for errors and warnings which may occur */
"log":"log.log",
/* List of allowed IPs connected to the server.
You may put IPs one by one as "127.0.0.1","127.0.0.2" or just use "*"
(in this case any domain may use your server for Jot Messenger module) */
"domains":["*"],
/* It is transformer which is used for Primus by default. We chosen sockjs,
because it most stable in our opinion. You may read more about transformers on
primus page https://github.com/primus/primus */
"transformer":"sockjs",
/* If you have https server (recommended) you need to fill 3 fields below */
root: '/home/webgurul/ssl/certs',
cert: 'penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt',
key: 'penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt',
/* Profile Status constants, don't need to change them */
"OFFLINE":0,
"ONLINE":1,
"AWAY":2
}
The only key file i can find is here:
/etc/pki/tls/private/localhost.keynot sure how it can be referenced with just one "root" path
any help appreciated!
-
- · Penamacor
- ·
note also that the system is refusing telnet connections.. although bnoth tcp and udp ports are open.. not sure if there are any other firewall settings to look at?
-
- · Penamacor
- ·
The system works to some extent but it wont show any messages or connect without refreshing the page.CAn i checkwhat node version should i usewhat npm version should i use\what other dependencies do i need to install..I think i have the wrong versions installed, and am also not 100% about the secure server certificate configuration.
If someone is able to advise ill be very grateful!many thanks -
-
·
Alexey
- ·
Hello!
Seems like it is the same issue https://una.io/page/view-discussion?id=6793 and it was solved.
-
·
Alexey
-
- · Miroslav
- ·
Hello,
I have the same issue with messenger displaying messages only on refresh.
I have checked the linked issue (see previous message from Alexey) but no answer has been really posted.
Do I need One signal to make this work, or is it supposed to work without this service ( = messages appear automatically when someone answers) ?
What should I check ?Thank you for your help
-
- · Rocco
-
·
In reply to Miroslav
M
- ·
Try test from two differen internet connections.
-
- · Miroslav
- ·
Hello Rocco, I have tried to send a message from the mobile app (connected to phone network - no wifi) to my computer (wifi internet connection) but it didn't change the behavior. I must refresh to see the message, or go to an other page in order to receive the notification.
-
- · Rocco
-
·
In reply to Miroslav
M
- ·
I have that problem sometimes. But with different connections a little.
-
Hello Miroslav !
If you have the fine working Jot then maybe other JS errors prevent the proper running of it. Need to review the Console log about JS errors there.
-
-
·
Alexey
-
·
In reply to Miroslav
M
- ·
Hello!
Seems like you have problem with Jot Server and if you don't see connecting... string near the text area, it means that problem may be in server IP and in Jot Server config. Provide me please with you studio access info via PM, I will check.
-
·
Alexey
-
- · Miroslav
- ·
Hello Leonids and Alexey,
Thanks a lot for your help. I have checked JS errors and the issue was "Access Denied for your IP ...." due to a misconfiguration in reverse proxy and Jot Server config. Now messages appear in real time.
Only one issue remaining with smileys not working. -
-
·
Alexey
-
·
In reply to Miroslav
M
- ·
Hello!
Can you please described smiles problem in more details?
-
·
Alexey
-
- · Miroslav
- ·
Hello Alexey,
Thanks for the follow up. The problem was that when I clicked on the smiley icon, the window with all the smileys did not appear. The problem is now also solved, most probably an issue with refreshing my browser or restarting my computer after the initial problem has been solved.
Thank you again, I appreciate your input, it helped me a lot.