Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 42cbb29692 | |
Derrick Hammer | 11a033b3f7 | |
Derrick Hammer | c4c0a947a9 |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2024-01-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use addEventListener, on is not available in all environments ([c4c0a94](https://git.lumeweb.com/LumeWeb/s5-js/commit/c4c0a947a93c60ea2364b7de9b975d6dccc188cc))
|
||||
|
||||
# [0.1.0-develop.27](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.26...v0.1.0-develop.27) (2023-12-28)
|
||||
|
||||
# [0.1.0-develop.26](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.25...v0.1.0-develop.26) (2023-12-28)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/s5-js",
|
||||
"version": "0.1.0-develop.27",
|
||||
"version": "0.1.0-develop.28",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/s5-js",
|
||||
"version": "0.1.0-develop.27",
|
||||
"version": "0.1.0-develop.28",
|
||||
"dependencies": {
|
||||
"@lumeweb/libs5": "^0.1.0-develop.82",
|
||||
"@noble/hashes": "^1.3.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/s5-js",
|
||||
"version": "0.1.0-develop.27",
|
||||
"version": "0.1.0-develop.28",
|
||||
"type": "module",
|
||||
"module": "lib/index.js",
|
||||
"main": "lib/index.js",
|
||||
|
|
|
@ -74,7 +74,7 @@ export async function subscribeToEntry(
|
|||
|
||||
const socket = new WS(wsUrl);
|
||||
|
||||
socket.on("open", () => {
|
||||
socket.addEventListener("open", () => {
|
||||
const packer = new Packer();
|
||||
packer.pack(2);
|
||||
packer.pack(publicKey);
|
||||
|
@ -84,8 +84,8 @@ export async function subscribeToEntry(
|
|||
|
||||
return {
|
||||
listen(cb: (entry: SignedRegistryEntry) => void) {
|
||||
socket.on("message", (data) => {
|
||||
cb(deserializeRegistryEntry(new Uint8Array(data as Buffer)));
|
||||
socket.addEventListener("message", (data) => {
|
||||
cb(deserializeRegistryEntry(new Uint8Array(data.data as Buffer)));
|
||||
});
|
||||
},
|
||||
end() {
|
||||
|
|
Loading…
Reference in New Issue