| 127 | } |
| 128 | |
| 129 | function initializeParams(args: RemoteAppServerConnectArgs): InitializeParams { |
| 130 | return { |
| 131 | clientInfo: { |
| 132 | name: args.clientName, |
| 133 | title: null, |
| 134 | version: args.clientVersion, |
| 135 | }, |
| 136 | capabilities: { |
| 137 | experimentalApi: args.experimentalApi ?? false, |
| 138 | optOutNotificationMethods: |
| 139 | args.optOutNotificationMethods && |
| 140 | args.optOutNotificationMethods.length > 0 |
| 141 | ? args.optOutNotificationMethods |
| 142 | : null, |
| 143 | }, |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | function appServerEventFromNotification( |
| 148 | notification: ServerNotification, |