timpistiI try to complle & build the stanza@12.18, and I get this error:
timpistinpm run compile
> stanza@12.18.0 compile
> tsc -p .
src/jingle/sdp/Protocol.ts:330:55 - error TS2345: Argument of type '{ direction: JingleApplicationDirection; id: number; uri: string; }' is not assignable to parameter of type 'SDPHeaderExtension'.
Property 'atrributes' is missing in type '{ direction: JingleApplicationDirection; id: number; uri: string; }' but required in type 'SDPHeaderExtension'.
330 media.rtpParameters.headerExtensions.push({
~
331 direction: sendersToDirection(role, ext.senders || 'both'),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
333 uri: ext.uri
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334 });
~~~~~~~~~~~~~
node_modules/sdp/sdp.d.ts:47:5
47 atrributes: string | undefined;
~~~~~~~~~~
'atrributes' is declared here.
timpistithe build process is stopping too (with much less readable error)
timpistiI assume it's good to know.
Alextimpisti, can confirm this. Just tried to compile as well
timpisti\o/
Alexjust add attributes: undefined and it will compile:
```
for (const ext of application.headerExtensions || []) {
media.rtpParameters.headerExtensions.push({
direction: sendersToDirection(role, ext.senders || 'both'),
id: ext.id,
uri: ext.uri,
atrributes: undefined
});
}
```
Alexnot sure if we need to pass any attribute here
timpistiokay, and it will build it too?
Alexyes
AlexI may send a PR on github later
timpistiawesome, thank you
timpistinow I try to build: [webpack-cli] ReferenceError: BigInt is not defined
Alexhttps://github.com/legastero/stanza/pull/497
timpistiawesome, I do this on (oooold) linux, and windows too. Linux build error: 'Bigint is not defined'. Windows error: The syntax of the command is incorrect.
Error: Command failed: mkdir dist/npm
The syntax of the command is incorrect.
AlexI am Windows right now (not in WSL). Normal compile works. Have not tried webpack yet, because I use Vue with Vite, but have other problems there See my screne above
Alextrying to see now if it works for me when I include the sources as a project reference
timpistion windows: npm run compile works, npm run compile:webpack get errors
Alexsame here. It opens a URI with empty stats in the browser. But I am not a webpack expert
timpistiCan't resolve 'crypto', 'dns', 'stream'
timpistiokay, thanks for the help anyway. as I see, stanza doesn't support connection attach?
Alexwhich protocol/XEP is connection attach?
timpistiwell, as I see, there is a support in eJabberd | Openfire and strophe. http://strophe.im/strophejs/doc/1.1.3/files/strophe-js.html#Strophe.Connection.attach
AlexOh, I see. ya, this is not supported by stanza AFAIK. Also not sure if this feature makes still sense these days. This was used like 10+ years go
timpistihttps://xmpp.org/extensions/xep-0206.html - the example
timpistiExample 8
timpistiIn webapps, after login, we didn't want to sore the user password. If the user refresh te page, the session sould be keeped, but without a connection restart, the connection process have to be restarted with the request of user password.
timpisti..didn't want to store...
Alexthis feature is called BOSH prebind
timpistiyes
timpistiI already done the server side, and now didn't find in stanza
timpistiAs I rememebered it was in stanza.io, but i'm not clear