                         dataStore.connectRealtime()
 
                         @onCreatePost = (e) =>
-                            data = JSON.parse e.data
+                            data = JSON.parse(e.data).post
                             post =
                                 id: data.id
                                 title: data.title

                        dataStore.getRealtimeProvider().addEventListener 'updatePost', @onUpdatePost

                        @onRemovePost = (e) =>
                            post = JSON.parse e.data
                            ndx = _.findIndex @posts, id: post.id

                            if ndx > -1

                        dataStore.getRealtimeProvider().addEventListener 'createPost', @onCreatePost

                        @onUpdatePost = (e) =>
                            data = JSON.parse(e.data).post
                            post = _.findWhere @posts, id: data.id
                            post.title = data.title
                            post.description = data.description
