Loading...
 

Realtime

New in Tiki25. Use built-in websockets server within Tiki to enable realtime communication features of the app.

At first for Tiki Manager Package, but will later be added to other Tiki Features.

Powered by https://packagist.org/packages/cboden/Ratchet and https://reactphp.org

This will require a special server configuration (possibly root access). tiki-check.php will indicate if server is correctly set up.

Initial commit: https://gitlab.com/tikiwiki/tiki/-/merge_requests/1638

In this documentation, we are going to configure Virtualmin (but any other server can be used), and then we will check if it worked.

Configuration

Requirements

We already have a Tiki instance up and running, on Virtualmin, now we need these four things: Proxy Settings, Realtime Service, proxy_wstunnel, and Realtime feature in Tiki in order to get Realtime working.

1. Proxy Settings

First, let us edit Apache directives and add the ProxyPass and the ProxyPassReverse settings in the SSl virtual host. We make both point to /ws ws://localhost:8080/
To do this, we go to Virtualmin -> Services -> Configure SSL Website -> Edit Directives.
In the text box that opens, we add ProxyPass /ws ws://localhost:8080/ and ProxyPassReverse /ws ws://localhost:8080/ at the end, like shown in the picture below:

Click to expand
Click to expand

2. Realtime Service

At this step, we need to create a Systemd service to start the WS server.
N.B: Start the WS server with the same user that Tiki web requests run as (to avoid permission issues) - e.g. sudo -u www-data php tiki-realtime.php
The process is simple. Just go to Webmin -> System -> Bootup and Shutdown -> create a new systemd service.

Click to expand
Click to expand


In the opening form, we fill in the Service name, the service description, and the commands to run on startup. As we don't need to shut this down, we are going to leave empty the "Commands to run on shutdown" field, check Yes for Start at boot time option, and click create.
The command to run on startup is: sudo -u user PHP -d session.save_path=/home/user/tmp /home/user/public_html/tiki-realtime.php
Replace user with your user

Click to expand
Click to expand


After this, you can check the content of your system service, and it should look something similar to the image below:

Click to expand
Click to expand

3. The proxy_wstunnel

The last step here in Virtualmin is to make sure the proxy_wstunnel module is enabled.
To do this, go to Webmin -> Servers -> Apache Webserver -> Global configuration -> Configure Apache Modules, and check the proxy_wstunnel module checkbox, like in the figure below:

Click to expand
Click to expand

4. Realtime feature

At this step, we need to enable Realtime feature in Tiki. When not enabled, this feature is visible only upon search.
Under Settings -> Control Panels, in the "Search preferences" search box, type a keyword, "realtime", for example.

Click to expand
Click to expand



After this is done, Tiki Realtime should be well set up and working. There is a way to check that. So let's see if everything went well...

Check that Realtime is working

This task is as simple as opening our Tiki and running "Server Check"
To do this you need to go under Settings -> Control Panels -> Global Setup -> General Settings and find "Server Fitness", click on it, and on the page that opens, scroll down until you find the "Tiki Realtime" section. If Tiki Realtime is working, all the requirements status should be "Good" as shown in the image below:

Click to expand
Click to expand

doc.tiki.org

Get Started

Admin Guide User Guide Bootstrap in Tiki

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki