Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot f3365838d9 chore(release): 0.1.0-develop.24 [skip ci]
# [0.1.0-develop.24](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.23...v0.1.0-develop.24) (2023-12-18)

### Bug Fixes

* ensure we are using a ws protocol ([bb7c7dc](bb7c7dcece))
2023-12-18 06:31:55 +00:00
Derrick Hammer c3377135b6
Merge remote-tracking branch 'origin/develop' into develop 2023-12-18 01:21:17 -05:00
Derrick Hammer bb7c7dcece
fix: ensure we are using a ws protocol 2023-12-18 01:21:13 -05:00
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.24](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.23...v0.1.0-develop.24) (2023-12-18)
### Bug Fixes
* ensure we are using a ws protocol ([bb7c7dc](https://git.lumeweb.com/LumeWeb/s5-js/commit/bb7c7dcece26e4ff7de338ca2bf7bc12046edebe))
# [0.1.0-develop.23](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.22...v0.1.0-develop.23) (2023-12-17)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.23",
"version": "0.1.0-develop.24",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.23",
"version": "0.1.0-develop.24",
"dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.81",
"@noble/hashes": "^1.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.23",
"version": "0.1.0-develop.24",
"type": "module",
"module": "lib/index.js",
"main": "lib/index.js",

View File

@ -70,7 +70,9 @@ export async function subscribeToEntry(
endpointPath: opts.endpointSubscribeEntry,
});
const socket = new WS(url);
const wsUrl = url.replace(/^http/, "ws");
const socket = new WS(wsUrl);
socket.once("open", () => {
const packer = new Packer();