π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat: options with custom namespaces
httpjamesme44cee8c0e3c
diff --git a/apps/cast/src/pages/index.tsx b/apps/cast/src/pages/index.tsxindex 7d09fa4d6a..3034fb4dab 100644--- a/apps/cast/src/pages/index.tsx+++ b/apps/cast/src/pages/index.tsx@@ -57,12 +57,17 @@ export default function PairingMode() {if (!cast) return;const context = cast.framework.CastReceiverContext.getInstance();+ const options = new cast.framework.CastReceiverOptions();+ options.customNamespaces = Object.assign({});+ options.customNamespaces['urn:x-cast:pair-request'] =+ cast.framework.system.MessageType.JSON;+context.addCustomMessageListener('urn:x-cast:pair-request',messageReceiveHandler);- context.start();+ context.start(options);}, [cast]);const messageReceiveHandler = (message: {@@ -74,7 +79,7 @@ export default function PairingMode() {// send the 6 digit code to the sendercast.framework.CastReceiverContext.getInstance().sendCustomMessage(- 'urn:x-cast:pair-response',+ 'urn:x-cast:pair-request',message.senderId,{code: digits.join(''),