Compare commits
No commits in common. "v0.1.0-develop.33" and "v0.1.0-develop.32" have entirely different histories.
v0.1.0-dev
...
v0.1.0-dev
|
@ -1,10 +1,3 @@
|
|||
# [0.1.0-develop.33](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.32...v0.1.0-develop.33) (2023-09-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* need to use close not end on WS transport ([e3b7760](https://git.lumeweb.com/LumeWeb/libs5/commit/e3b77600500289acca4aca96d418f25d1d1780b8))
|
||||
|
||||
# [0.1.0-develop.32](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.31...v0.1.0-develop.32) (2023-09-02)
|
||||
|
||||
# [0.1.0-develop.31](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.30...v0.1.0-develop.31) (2023-09-02)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.33",
|
||||
"version": "0.1.0-develop.32",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.33",
|
||||
"version": "0.1.0-develop.32",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.33",
|
||||
"version": "0.1.0-develop.32",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -3,10 +3,8 @@ import { URL } from "url";
|
|||
import * as WS from "ws";
|
||||
import { BasePeer } from "#transports/base.js";
|
||||
import isNode from "detect-node";
|
||||
import net from "net";
|
||||
|
||||
export class WebSocketPeer extends BasePeer implements Peer {
|
||||
declare _socket: WebSocket;
|
||||
sendMessage(message: Uint8Array): void {
|
||||
this._socket.send(message);
|
||||
}
|
||||
|
@ -45,7 +43,7 @@ export class WebSocketPeer extends BasePeer implements Peer {
|
|||
}
|
||||
}
|
||||
end(): void {
|
||||
this._socket.close();
|
||||
this._socket.end();
|
||||
}
|
||||
|
||||
public static async connect(uri: URL): Promise<WebSocket> {
|
||||
|
|
Loading…
Reference in New Issue