Is this a hard limit of two sublevels, or is tv.watch.x.y also possible?
The third argument is always a URL e.g. http://youtu.be/518XP8prwZo.
Can we put other text in the third field? Can it contain spaces?
Is there a limit to the length of that field?
Is it possible to call addListener() AFTER start() is called?
There is a removeListener() that appears be callable AFTER start is called?
In the trigger example, you show the use of an object as the third argument.
ServerEvents.NotifyChannel(channel, "trigger.customEvent", new ChatMessage { ... });
is that automatically paired with?
trigger.customEvent {json}
Is this object serialization ew ChatMessage {} available on other methods such as NofifyUser?
Which you create a helper that walks an object graph and returns a flat structure with your chose syntax for its name, e.g. turning the below object graph into the one above:
The msg is sent and parsed as json, so if you send a string it’s serialized as a quoted JSON string “msg” it will get parsed as a js msg JS string which your receiver is called with, if you send a complex object, it’s serialized as JSON and deserialized into a JS literal that your receiver is called with instead.
yes.
Yes all IServerEvents notification APIs have object message bodies that are sent as JSON and parsed as JSON into a JS data structure.