Is there a way to integrate Tinode in an existing website with it's own users database, groups, avatars, names, etc? I really don't understand.I need something like this:- user registers on the website and the registration script (php) automatically creates a new user in the messenger.
- user logins to the website and when access the section "Messages" (tinode) he is automatically logged in to the messenger without a need to enter username/password.
- user registration and creating of groups and many other functions are disabled in the messenger and only is possible from the website
- user changes his avatar on the website and new avatar appears in the messenger
- user sends a message to another user from a form on the profile (without opening messenger) and this message automatically goes to Tinode and new contact is automatically added to the recipient in Tinode
- user deleted his profile on the website and the same user is deleted fom Tinode
etc, etcCan this be done from a php script?I was thinking that I will be able to create/delete users groups just by inserting/deleting data in Tinode's MySQL database.
Thanks.
I have installed tn-cli and tinode_grpc but really don't understand how do I perfom actions from server A where website is located to server B where Tinode is running.Can anyone give me some example?
I need to delete users, create group topics and add subscribe users, send messages as root from user a to user B...Can I do it by sending a curl request from php? If yes, to which URL?
My Tinode conf. contains: "grpc_listen": ":16060", however if I try to access: https://domain:16060 I get ERR_HTTP2_PROTOCOL_ERROR
I just installed Tinode on a new server. Debian 10 Buster. No firewall set up, nothing. But still I am getting the same error:gRPC failed with StatusCode.UNAVAILABLE: failed to connect to all addresses
There were several problems.1. Nginx running on port 80. Nginx was already running before I installed Tinode and it looked that there are no problems. But I was not able to restart Nginx because of error message saying that another service is listening to port 80. I just changed Nginx port number to 8080.
2. While experimenting I changed the "listen" value in tinode.conf to "listen": "localhost:6060". It allows to start Tinoe but in my case I was not able to login from the web app (I didn't test the mobile apps) - Connection failed: 503. So, I had to change it back to: "listen": ":6060"
3. I was not able to make grpc calls because I started Tinode with:./tinode &If I start Tinode with:sudo ./tinode &everything works fine. I guess it's a permission issue of Letsencrypt files or folders. If somedoby knows correct permissions so that it's possible to start Tinode without sudo, please let me know.
4. I was making grcp call without ssl flag as in the ducumentation:python tn-cli.py --login-basic=alice:alice123it didn't work. This works:python tn-cli.py --host=127.0.0.1:16060 --web-host=127.0.0.1:6060 --ssl --ssl-host=example.domain --login-basic=alice:alice123More questions on grpc calls.1) Sending messages as root userDocumentation says:it allows the root user to send messages on behalf of other usersCan somebody give me example of grpc call how do I send a messge from user A to user B as a root user C?
2) Can root user create group topics on behalf of other users and subscribe users to the created group topics?An example would be appreciated.
--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/d355dab8-75f2-424b-98af-e8130790c4f2n%40googlegroups.com.
I spent already more than 2 days trying to understand GRPC. There are only a few tutorials that lead to nowhere. I even posted a project on Freelancer, got only 6 bids but looks that all the persons submitted bids without reading the project because later noone wanted to do this job.I stopped to read tutorials and did the following things. Probably everything is wrong, I don't know.- Installed php grpc extension- Generated php classes from Tinode's proto file
I attach a file to this post how my files look like. If it's correct, can someone help me and change the index.php file to show the following things:- connect and authenticate by Tinode's GRPC server with a secure connection as a root user