class DataKeeper implements IDataKeeper {
private $data;
public function setData($data) {
// реализация
}
public function getData() {
// реализация
}
public function saveData() {
// реализация
}
private function processData() {
// реализация
}
}
interface IDataKeeper {
public function getData();
public function setData($data);
public function saveData();
}
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: 176.х.х.х:8081
Origin: 176.х.х.х
Sec-WebSocket-Key: aUOMe5Zs+5lnPNjAiPp/Kw==
Sec-WebSocket-Version: 13
Cookie: PHPSESSID=5226a026e3626569bba468bc27bc3bab
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: /NYJ3OVdOzEkA62igWeFGHmVwR4=
Sec-WebSocket-Version: 13
Origin: 176.х.х.х:8081
Host: 176.х.х.х