mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-04 10:43:29 +00:00
Add Subscription import to browser/index.js and register type converter (#1744)
This commit is contained in:
parent
424ff81965
commit
5c86e9e92d
@ -26,6 +26,7 @@ import Results, { createResults } from './results';
|
||||
import RealmObject, * as objects from './objects';
|
||||
import User, { createUser } from './user';
|
||||
import Session, { createSession } from './session';
|
||||
import Subscription, { createSubscription } from './subscription';
|
||||
import * as rpc from './rpc';
|
||||
import * as util from './util';
|
||||
import { static as staticUserMethods } from '../user-methods';
|
||||
@ -38,6 +39,7 @@ rpc.registerTypeConverter(objectTypes.OBJECT, objects.createObject);
|
||||
rpc.registerTypeConverter(objectTypes.REALM, createRealm);
|
||||
rpc.registerTypeConverter(objectTypes.USER, createUser);
|
||||
rpc.registerTypeConverter(objectTypes.SESSION, createSession);
|
||||
rpc.registerTypeConverter(objectTypes.SUBSCRIPTION, createSubscription);
|
||||
|
||||
function createRealm(_, info) {
|
||||
let realm = Object.create(Realm.prototype);
|
||||
|
Loading…
x
Reference in New Issue
Block a user