Version 1.2.0 (see README for changelog)
This commit is contained in:
parent
9fdc469325
commit
8621dfaba9
3 changed files with 7 additions and 2 deletions
|
|
@ -35,6 +35,8 @@ bun run your-app-entrypoint.js
|
||||||
|
|
||||||
## changelog
|
## changelog
|
||||||
|
|
||||||
|
- **Version 1.2.0**
|
||||||
|
- modified `frontend/index.js` such that script can now be used in SharedWorker and HTTPS contexts
|
||||||
- **Version 1.1.0**
|
- **Version 1.1.0**
|
||||||
- added `func_register_teardown`, made `jsbuild_app_frontend` optional
|
- added `func_register_teardown`, made `jsbuild_app_frontend` optional
|
||||||
- **Version 1.0.1**
|
- **Version 1.0.1**
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,10 @@ class FramerockUtils {
|
||||||
|
|
||||||
console.debug('SETUP TRANSPORT')
|
console.debug('SETUP TRANSPORT')
|
||||||
|
|
||||||
this._ws = new WebSocket(`ws://${window.location.host}/ws`)
|
const ctx_location = window ? window.location : self.location
|
||||||
|
const ws_protocol = ctx_location.protocol === 'http:' ? 'ws:' : 'wss:'
|
||||||
|
|
||||||
|
this._ws = new WebSocket(`${ws_protocol}//${ctx_location.host}/ws`)
|
||||||
const ws = this._ws
|
const ws = this._ws
|
||||||
ws.binaryType = 'arraybuffer'
|
ws.binaryType = 'arraybuffer'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "framerock",
|
"name": "framerock",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "backend/index.js"
|
"main": "backend/index.js"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue