An open API service indexing awesome lists of open source software.

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.

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.

![Result](docs/screenshot_1.png)