Completed
Push — master ( 029d32...f8abda )
by Vasily
04:13
created

Websocket::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 1
rs 10
c 1
b 0
f 1
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
namespace PHPDaemon\SockJS\Methods;
3
4
use PHPDaemon\Core\Daemon;
5
use PHPDaemon\Core\Debug;
6
use PHPDaemon\Utils\Crypt;
7
8
/**
9
 * @package    Libraries
10
 * @subpackage SockJS
11
 * @author     Vasily Zorin <[email protected]>
12
 */
13
class Websocket extends Generic {
14
	protected $contentType = 'text/plain';
15
16
	/**
17
	 * Constructor
18
	 * @return void
19
	 */
20
	public function init() {
21
		$this->header('426 Upgrade Required');
22
		$this->finish();
23
	}
24
25
	/**
26
	 * Called when request iterated
27
	 * @return void
28
	 */
29
	public function run() {}
30
}
31