aboutsummaryrefslogtreecommitdiff
path: root/src/client/SocketStub.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-16 07:46:55 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-16 07:46:55 -0500
commit3c71a4b9c727f8eee8631b46b28c010682608f13 (patch)
tree461dbe3b4ac666d6ddc2c736d9b024dfcbc85275 /src/client/SocketStub.ts
parent32b197fd3a0340d01a4b432d7815a14eefda0a97 (diff)
Fixed server and added a field debug viewer
Diffstat (limited to 'src/client/SocketStub.ts')
-rw-r--r--src/client/SocketStub.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/SocketStub.ts b/src/client/SocketStub.ts
index 36818b1eb..2bddf4e97 100644
--- a/src/client/SocketStub.ts
+++ b/src/client/SocketStub.ts
@@ -1,5 +1,6 @@
import { Field, FIELD_ID, Opt } from "../fields/Field"
-import { Key, KeyStore } from "../fields/Key"
+import { Key } from "../fields/Key"
+import { KeyStore } from "../fields/KeyStore"
import { ObservableMap, action } from "mobx";
import { Document } from "../fields/Document"
import { MessageStore, SetFieldArgs, GetFieldArgs, DocumentTransfer, Types } from "../server/Message";
@@ -84,12 +85,12 @@ export class SocketStub {
document._proxies.delete(key.Id);
}
- public static SEND_SET_FIELD(field: Field, fn: (args: any) => void) {
+ public static SEND_SET_FIELD(field: Field) {
// Send a request to set the value of a field
// ...SOCKET(SET_FIELD, field id, serialized field value)
// Server updates the value of the field in its fieldstore
- Utils.EmitCallback(Server.Socket, MessageStore.SetField, field.ToJson(), fn)
+ Utils.Emit(Server.Socket, MessageStore.SetField, field.ToJson())
}
}