Add RSocket deprecation warning
Reviewed By: lblasa Differential Revision: D33976369 fbshipit-source-id: c100c145d7c77369347200d32448015ad971d585
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cdb72db5a9
commit
7376774a95
@@ -105,6 +105,11 @@ class ServerRSocket extends ServerAdapter {
|
||||
}
|
||||
|
||||
const clientQuery: SecureClientQuery = JSON.parse(payload.data);
|
||||
// TODO: Add a migration guide
|
||||
console.warn(
|
||||
`[conn] RSockets are being deprecated at Flipper. Please, migrate to WebSockets. App: ${clientQuery.app}. Device: ${clientQuery.device}.`,
|
||||
);
|
||||
|
||||
this.listener.onSecureConnectionAttempt(clientQuery);
|
||||
console.info(
|
||||
`[conn] Secure rsocket connection attempt: ${clientQuery.app} on ${clientQuery.device_id}. Medium ${clientQuery.medium}. CSR: ${clientQuery.csr_path}`,
|
||||
|
||||
Reference in New Issue
Block a user