sapling/addons
Randall Bennett 3d3f507ab1 Allow websockets to connect to the current browser's port of choice (if available) (#886)
Summary:
Allow websockets to connect to the current browser's port of choice (if available)
Adds a check for the current window's protocol. Defaults to ws:// but will switch to wss:// in secure contexts. This assumes the upstream server will handle converting from wss to ws.

Pull Request resolved: https://github.com/facebook/sapling/pull/886

Test Plan:
Import github project to replit. Run a server by doing:
`sl web --no-app`

open the replit webview with the token, see if it loads the smartlog.

Reviewed By: quark-zju

Differential Revision: D56526564

Pulled By: evangrayk

fbshipit-source-id: d241e2f2bfc7fb3fb30d9be9e8206970b8d57cd3
2024-04-26 16:10:21 -07:00
..
.tours Add code tours 2023-02-06 10:02:35 -08:00
.vscode vscode: update test launch script 2024-02-08 19:07:59 -08:00
eslint-rules eslint: update eslint rules to match current practice 2024-02-12 15:29:50 -08:00
isl Allow websockets to connect to the current browser's port of choice (if available) (#886) 2024-04-26 16:10:21 -07:00
isl-server Track when configuring external merge tool 2024-04-26 16:03:21 -07:00
shared Update ButtonDropdown to stylex and <Button> 2024-04-23 16:17:13 -07:00
textmate codemod: use node: prefix for node builtin modules 2024-04-23 12:01:57 -07:00
vscode API to get current theme name 2024-04-23 16:17:13 -07:00
.committemplate committemplate: set reviewers to #isl 2023-10-17 19:33:35 -07:00
.eslintrc.js Lint against importing act from react-dom/test-utils 2024-04-09 13:12:44 -07:00
.gitignore build-tar: script to build ISL to a tarball 2023-09-23 10:47:58 -07:00
.prettierignore Remove tauri 2024-02-15 14:55:13 -08:00
.prettierrc Re-sync with internal repository 2022-11-15 00:48:09 -08:00
build-tar.py apply Black 2024 style in fbcode (9/16) 2024-03-02 17:31:19 -08:00
LICENSE Re-sync with internal repository 2022-11-15 00:48:09 -08:00
package.json Update addons to typescript 5.4.5 2024-04-16 11:46:48 -07:00
removeInternalFiles.sh Script to remove internal files 2023-02-06 15:13:28 -08:00
TARGETS eden 2023-10-23 09:12:58 -07:00
verify-addons-folder.py move reviewstack to a different npm workspace 2024-02-12 15:28:10 -08:00
yarn.lock Update jest to 29 2024-04-16 15:18:34 -07:00