@abndnce/pulsar-client 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -30,13 +30,17 @@ async function connectDirect(host, port) {
30
30
  `a=ice-pwd:${PULSAR_PWD}`,
31
31
  `a=fingerprint:sha-256 ${PULSAR_FINGERPRINT}`,
32
32
  "a=setup:active",
33
- "a=sctp-port:5000",
34
- `a=candidate:1 1 UDP 2130706431 ${host} ${port} typ host`
33
+ "a=sctp-port:5000"
35
34
  ].join("\r\n");
36
35
  await pc.setRemoteDescription({
37
36
  type: "answer",
38
37
  sdp: remoteSdp
39
38
  });
39
+ await pc.addIceCandidate({
40
+ candidate: `candidate:1 1 UDP 2130706431 ${host} ${port} typ host`,
41
+ sdpMid: "0",
42
+ sdpMLineIndex: 0
43
+ });
40
44
  await new Promise((resolve, reject) => {
41
45
  const timeout = setTimeout(() => {
42
46
  reject(/* @__PURE__ */ new Error("Connection timed out after 30s"));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abndnce/pulsar-client",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "homepage": "https://github.com/abndnce/pulsar",
6
6
  "license": "MIT",
7
7
  "exports": {