Browse files

Simplified event type:

 - Removed framing inconsistency
 - Made the whole data packet JSON, since the most common use case
   for events will be parameters in real-world usage.
  • Loading branch information...
1 parent 4c1e425 commit 118fec522b0ceeb0646867fd050019762fee2672 @rauchg rauchg committed Jun 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3
@@ -269,10 +269,10 @@ A JSON encoded message.
### (`5`) Event
- '5:' [message id ('+')] ':' [message endpoint] ':' [event type] `\ufffd` [json]
+ '5:' [message id ('+')] ':' [message endpoint] ':' [json encoded event]
-An event is like a regular message, but has a `type` identifier, and a JSON
-encoded array of arguments.
+An event is like a json message, but has mandatory `name` and `args` fields.
+`name` is a string and `args` an array.
The event names

0 comments on commit 118fec5

Please sign in to comment.