Commits

Greg Taylor committed 716914f

Subscribe to a bunch of the topics on connect now.

Comments (0)

Files changed (1)

lib/src/netcomm/netcomm.dart

 library netcomm;
 
-
-
 import "package:hexmap/wamp_client/wamp_client.dart";
 
 class ChatClient extends WampClientProtocol {
   ChatClient(socket) : super(socket);
 
   onOpenSession() {
-    subscribe('http://example.com/myEvent1');
+    subscribe('http://hexmap.com/unit/events/detected');
+    subscribe('http://hexmap.com/unit/events/destroyed');
+    subscribe('http://hexmap.com/unit/events/stale-removal');
+    subscribe('http://hexmap.com/unit/events/hit-landed');
+    subscribe('http://hexmap.com/unit/events/shot-missed');
+
+    call("http://hexmap.com/unit-store#get", [])
+      .then((response) => print("Response: ${response}"));
   }
 
   onEvent(topicUri, event) {