# Loading sideloaded data received through a WebSocket

**URL:** <https://discuss.emberjs.com/t/loading-sideloaded-data-received-through-a-websocket/905>\
**Category:** Ember Data\
**Created:** [April 9, 2013, 9:55am UTC](https://discuss.emberjs.com/t/loading-sideloaded-data-received-through-a-websocket/905 "2013-04-09T09:55:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![emk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/emk/32/14569_2.png) [@emk](https://discuss.emberjs.com/u/emk)\
**Post date:** [April 9, 2013, 11:58am UTC](https://discuss.emberjs.com/t/loading-sideloaded-data-received-through-a-websocket/905/2 "2013-04-09T11:58:28Z")

</div>

This stumped me for a while, too. The best approach I’ve found is to look at how `find` works, and to immitate it by calling `didFindRecord`.

```javascript
var id = json["person"]["id"];
var store = DS.get("defaultStore");
var adapter = store.adapterForType(App.Person);
adapter.didFindRecord(store, App.Person, json, id);
var person = App.Person.find(id);

```

This is probably not a best practice.

---

_[View the full topic](https://discuss.emberjs.com/t/loading-sideloaded-data-received-through-a-websocket/905)._
