CHANGELOG.md in plezi-0.12.18 vs CHANGELOG.md in plezi-0.12.19

- old
+ new

@@ -1,8 +1,24 @@ #Change Log *** +Change log v.0.12.19 + +**Updates**: Auto-Dispatch updates: + +* Updated the Auto-Dispatch API conventions, so that the client and the server conventions are the same (both map events to methods with the same name (without the `on` prefix) and map unknown events to the `unknown` callback). + +* Auto-Dispatch callbacks can return a Hash as well as a String when the return value is meant to be written to the websockets. + +* Auto-Dispatch sends an `_ack_` event whenever an event contains an event ID (`_EID_`) property. + +* Auto-Dispatch client's `emit` supports timeout callbacks (for easier fallback to AJAX). + +* A `:client` route allows serving Auto-Dispatch's updated client rather than the original client provided in the template. This allows the application to serve the updated client when Plezi is updated. + +*** + Change log v.0.12.18 **Feature**: Auto-dispatching allows, when enabled, to automatically map JSON websocket messages to controller methods, according to their `event` property. Also, when using the auto-dispatch, Plezi will automatically send the returned value for dispatch methods that return a String (just like when using Http). This means that unifying Websocket and RESTful APIs is now easier than ever. **Change**: the `json` format is now automatically assumed when a websocket connection is established - allowing `render` calls to automatically prefer `json` format templates. \ No newline at end of file