Skip to content

Commit bd25a65

Browse files
committed
WIP: DEMO4 and DEMO5
1 parent 1720671 commit bd25a65

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

DEMO4/readme.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DEMO4
2+
3+
### Demo Chat implementation, exploring PubSub
4+
5+
This is a demo implementation of a chatroom, it has:
6+
* chatroom list to choose from
7+
* multiple connections in sigle chatroom, messages are 1 to many
8+
* private messages, this is just a chatroom with extra rules, so only 2 connections are allowed, messages are 1 to many but since there are only two connections in the room it works as 1 to 1.
9+
* broadcast and emit messages to all connections in all chatrooms
10+
11+
#### How to run it:
12+
13+
**open 1 terminal and run the server:**
14+
15+
> php DEMO4/bin/router.php
16+
17+
**open as many browser tabs as you want, from index go to DEMO4, pretend you chat with as many people you want**

DEMO5/readme.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# DEMO5
2+
3+
### dashboard implementation demo, take control of all connections
4+
5+
This implementation demo has:
6+
* list of realms
7+
* number and list of connections in each realm
8+
* number and list of all RPC methods available in each realm
9+
* handy buttons to disconnect clients
10+
* how much time each connection has been on, and how much time from its last activity
11+
12+
What thruway features are being explored:
13+
* multiple realms (with no authentication)
14+
* PubSub
15+
* RPC registered in the browser client
16+
17+
how to run it:
18+
19+
**open 1 terminal and run the server**
20+
21+
> php DEMO5/bin/router.php
22+
23+
**open at least 2 tabs, from index, go to DEMO5, follow instructions from there**

chatroom.php

Whitespace-only changes.

dashboard.php

Whitespace-only changes.

demo5_client.php

Whitespace-only changes.

0 commit comments

Comments
 (0)