Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dev:client_coding:connector_http_server [2019/06/19 19:44]
bwiernik
dev:client_coding:connector_http_server [2019/06/19 19:48]
bwiernik
Line 9: Line 9:
   * ''/​connector/​ping''​   * ''/​connector/​ping''​
  
-These endpoints are implemented in [[https://​github.com/​zotero/​zotero/​blob/​master/​chrome/​content/​zotero/​xpcom/​server_connector.js|server_connector.js]]. The server is implemented in [[https://​github.com/​zotero/​zotero/​blob/​master/​chrome/​content/​zotero/​xpcom/​server.js|server.js]].+These endpoints are implemented in [[https://​github.com/​zotero/​zotero/​blob/​master/​chrome/​content/​zotero/​xpcom/connector/​server_connector.js|server_connector.js]]. The server is implemented in [[https://​github.com/​zotero/​zotero/​blob/​master/​chrome/​content/​zotero/​xpcom/​server.js|server.js]].
  
 ====== Extending the Connector Server ====== ====== Extending the Connector Server ======
 The following code registers an additional endpoint with the connector server. The following code registers an additional endpoint with the connector server.
  
-This script must be run with chrome privileges. The best way to do this is to create an extension that [[https://​developer.mozilla.org/​en/​XPCOM/​Receiving_startup_notifications|registers an XPCOM service to run at Zotero startup]]. This can (and should if possible) be a [[https://​developer.mozilla.org/​en/​Extensions/​Bootstrapped_extensions|bootstrapped extension]]. Alternatively,​ you could register the endpoint from a overlay or from a chrome URI that you load manually.+This script must be run with chrome privileges. The best way to do this is to create an extension that [[https://​web.archive.org/​web/​20190612191336/​https://​developer.mozilla.org/​en-US/​docs/​Mozilla/​Tech/XPCOM/Guide/​Receiving_startup_notifications|registers an XPCOM service to run at Zotero startup]]. This can (and should if possible) be a [[https://​web.archive.org/​web/​20190613013728/​https://​developer.mozilla.org/​en-US/​docs/​Archive/Add-ons/​Bootstrapped_extensions|bootstrapped extension]]. Alternatively,​ you could register the endpoint from a overlay or from a chrome URI that you load manually.
  
 Once registered, going to http://​127.0.0.1:​23119/​myAddon/​helloWorld in a web browser should produce a page containing "Hello world."​ Once registered, going to http://​127.0.0.1:​23119/​myAddon/​helloWorld in a web browser should produce a page containing "Hello world."​
dev/client_coding/connector_http_server.txt ยท Last modified: 2019/06/19 19:49 by bwiernik