-
-
Save Ashoat/7cf4a0fbdebc152d585884184bc0ac07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/web/root.js b/web/root.js | |
index 5145e63a7..824abd985 100644 | |
--- a/web/root.js | |
+++ b/web/root.js | |
@@ -21,6 +21,23 @@ import type { AppState, Action } from './redux/redux-setup.js'; | |
import history from './router-history.js'; | |
import Socket from './socket.react.js'; | |
+import * as IdentityClient from './protobufs/identity-client.cjs'; | |
+import { Empty, PreKey } from './protobufs/identity-structs.cjs'; | |
+ | |
+const PromiseClient = IdentityClient.IdentityClientServicePromiseClient; | |
+const client = new PromiseClient('http://localhost:50054'); | |
+(async () => { | |
+ const result = await client.generateNonce(new Empty()); | |
+ console.log(`result: ${result.getNonce()}`); | |
+})(); | |
+ | |
+const prekey = PreKey.deserializeBinary(new Uint8Array(0)); | |
+const test = PreKey.toObject(true, prekey); | |
+test.prekey = 'test'; | |
+ | |
+// This one causes a type error | |
+//test.prekey2 = 'test'; | |
+ | |
const migrations = { | |
[1]: state => { | |
const { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment