Skip to content

Commit 737cf6b

Browse files
committed
add solid-0.1 subprotocol
1 parent 3886b6a commit 737cf6b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/server.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ public function __construct()
1515
{
1616
$this->clients = new \SplObjectStorage;
1717
$this->subscriptions = array();
18+
$this->subprotocols = array("solid-0.1");
1819
}
1920

20-
public function onOpen(ConnectionInterface $conn) {
21+
public function getSubProtocols() {
22+
return $this->subprotocols;
23+
}
24+
public function onOpen(ConnectionInterface $conn) {
2125

2226
// Store the new connection in $this->clients
2327
$this->clients->attach($conn);

0 commit comments

Comments
 (0)