https://github.com/fajarbc/reactphp-thruway-websocket-chats
Example ReactPHP Project : Websocket Chats. With the help of Thruway as PHP Router Library for Autobahn (use autobahn-browser as a client) Real-Time Application Messaging.
https://github.com/fajarbc/reactphp-thruway-websocket-chats
autobahn php reactphp realtime socket websocket
Last synced: 6 months ago
JSON representation
Example ReactPHP Project : Websocket Chats. With the help of Thruway as PHP Router Library for Autobahn (use autobahn-browser as a client) Real-Time Application Messaging.
- Host: GitHub
- URL: https://github.com/fajarbc/reactphp-thruway-websocket-chats
- Owner: fajarbc
- Created: 2022-04-26T13:09:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T13:40:44.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T13:48:26.034Z (about 1 year ago)
- Topics: autobahn, php, reactphp, realtime, socket, websocket
- Language: JavaScript
- Homepage:
- Size: 853 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reactphp-thruway-websocket-chats
## Description
Example **ReactPHP** Project : **Websocket Chats**. With the help of **Thruway** as PHP Router Library for **Autobahn** (use autobahn-browser as a client) Real-Time Application Messaging.
## Install
After clone and `cd` to this project. Install composer dependency
```bash
composer update
```
## Run
1. WebSocket Server (keep it running)
```bash
php ws-router.php
```
2. Client
Just visit `index.html` with your browser (I use Live Server from VS Code). Open `index.html` with multiple browser to see the realtime chat goes on.
