Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 1431aa7

Browse files
author
Joel Collins
committed
Fixed event forms in TD
1 parent 4d11ec6 commit 1431aa7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

thingserver/thing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ def as_thing_description(self):
6262

6363
for name, event in self.available_events.items():
6464
thing["events"][name] = event["metadata"]
65-
thing["events"][name]["links"] = [
65+
thing["events"][name]["forms"] = [
6666
{
67-
"rel": "event",
67+
"op": "subscribeevent",
6868
"href": "{}/events/{}".format(self.href_prefix, name),
69+
"subprotocol": "longpoll"
6970
},
7071
]
7172

0 commit comments

Comments
 (0)