Skip to content

Commit 00c7325

Browse files
committed
added composer dependencies folders
1 parent be08514 commit 00c7325

File tree

715 files changed

+95184
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

715 files changed

+95184
-12
lines changed

NewConnect.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22
include('server.php');
3+
/*ini_set('display_errors', 1);
4+
ini_set('display_startup_errors', 1);
5+
error_reporting(E_ALL);*/
36
if (!isset($_SESSION['id'])) {
47
$_SESSION['msg'] = "You must log in first";
58
header('location: login.php');

ToDo

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
----- >>>> DONE #5.4 scrollTo down of chat
1010
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> **#5.5 Clicking on img would open profile.
1111
#5.6 Integrating it with notification system.
12-
**#5.7 Changing time format to WhatsApp format.
12+
----- >>>> DONE #5.7 Changing time format to WhatsApp format.
1313

1414
----- >>>> DONE #6 I-card pop-up for view-profile section
1515
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> #7 Scroll Cache problem to be resolved

bin/chat-server.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
use Ratchet\Server\IoServer;
3+
use Ratchet\Http\HttpServer;
4+
use Ratchet\WebSocket\WsServer;
5+
use MyApp\Chat;
6+
7+
require dirname(__DIR__) . '/vendor/autoload.php';
8+
9+
$server = IoServer::factory(
10+
new HttpServer(
11+
new WsServer(
12+
new Chat()
13+
)
14+
),
15+
8080
16+
);
17+
18+
$server->run();
19+
20+
21+
?>

composer.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"autoload": {
3+
"psr-4": {
4+
"MyApp\\": "src"
5+
}
6+
},
7+
"require": {
8+
"cboden/ratchet": "^0.4.1"
9+
}
10+
}

0 commit comments

Comments
 (0)