jdev - 2021-01-31


  1. mikeye has joined
  2. suohua has left
  3. suohua has joined
  4. wurstsalat has left
  5. stpeter has joined
  6. Zash has left
  7. marmistrz has joined
  8. mikeye has left
  9. stpeter has left
  10. larma has joined
  11. Zash has joined
  12. paul has left
  13. marmistrz has left
  14. Zash has left
  15. Zash has joined
  16. suohua has left
  17. stpeter has joined
  18. suohua has joined
  19. suohua has left
  20. stpeter has left
  21. debacle has left
  22. suohua has joined
  23. mikeye has joined
  24. mikeye has left
  25. mac has joined
  26. mac has left
  27. mac has joined
  28. stpeter has joined
  29. Vaulor has joined
  30. stpeter has left
  31. SouL has joined
  32. suohua has left
  33. suohua has joined
  34. Stefan has joined
  35. mikeye has joined
  36. suohua has left
  37. suohua has joined
  38. jonas’ has left
  39. suohua has left
  40. mikeye has left
  41. paul has joined
  42. Ge0rG has left
  43. Ge0rG has joined
  44. stpeter has joined
  45. stpeter has left
  46. marmistrz has joined
  47. mac has left
  48. mikeye has joined
  49. SouL has left
  50. goffi has joined
  51. wurstsalat has joined
  52. stpeter has joined
  53. jonas’ has joined
  54. stpeter has left
  55. mikeye has left
  56. serge90 has joined
  57. SouL has joined
  58. marmistrz has left
  59. oibalos has left
  60. debacle has joined
  61. goffi has left
  62. Guus has joined
  63. moparisthebest has left
  64. moparisthebest has joined
  65. mikeye has joined
  66. suohua has joined
  67. Guus has left
  68. oibalos has joined
  69. debacle has left
  70. goffi has joined
  71. Neustradamus has joined
  72. Martin has left
  73. Martin has joined
  74. goffi has left
  75. asterix has left
  76. asterix has joined
  77. mikeye has left
  78. goffi has joined
  79. larma has left
  80. debacle has joined
  81. suohua has left
  82. marmistrz has joined
  83. Sam Whited Might have asked this before, but does anyone know of another XMPP library (other than Mellium) that handles the server side of things? Trying to find examples of how they handle what stream features to select by user account.
  84. Sam Whited I'm having an issue where even if I pass in a callback that takes, eg. the origin JID and returns a list of stream features after the first stream is established, there's not always a from attribute to pass to the callback before StartTLS. But I can't list starttls until I know if I should list it for that account.
  85. Sam Whited The "correct" behavior and API is eluding me.
  86. jonas’ the XMPP protocol doesn’t really allow you to do starttls depending on the account or not
  87. jonas’ the XMPP protocol doesn’t really allow you to do starttls depending on the account
  88. jonas’ only if you do auth first
  89. Zash > XMPP library that handles the server side I'm aware of xmpp.js
  90. jonas’ so the callback should have the `from` optional, and the user of the callback should know that if `from` is nil or whatever, it is pre-auth
  91. jonas’ then the application can either decide to offer starttls (or whatever) always, or decide to not offer it until auth has passed
  92. Sam Whited I suppose that's fair; then I have to come up with some new way to add stream features to the list after the first stream I suppose, which is going to be a real pain.
  93. jonas’ Sam Whited, can’t you re-invoke the callbacks on each stream reset?
  94. Sam Whited Zash: thanks, I'll look that one up
  95. jonas’ with the information available there? thanksfully, stream resets happen after TLS and auth.
  96. stpeter has joined
  97. Sam Whited jonas’: I suppose so; I was originally listing every possible stream feature up front, but maybe I just need to re-invoke it every time. It just feels odd to give the user the posibility of returning widely divergent stream features lists for every stream, and they also do their own filtering based on the state (so eg. if you list "starttls, auth" it won't actually present auth until after starttls has been negotiated).
  98. suohua has joined
  99. Sam Whited Sorry, "listing" in the sense of "passing it to the code that does negotiation" not "listing" as in "sending the XML to the client"
  100. Sam Whited Zash: I don't see any server package in here except something that just launches prosody, sadly. No docs that I can find though and I don't really know JavaScript, so I may be missing something.
  101. debacle has left
  102. Zash https://github.com/xmppjs/xmpp.js ? thought they had xmpp server support
  103. Sam Whited Zash: yah, that's what I'm looking at. I don't see any
  104. Zash and it's not tests? oh well
  105. Sam Whited Zash: What do you mean by "not tests?" what's not tests?
  106. Sam Whited I think the server folder is just tests or something, it appears to just launch and configure prosody like https://pkg.go.dev/mellium.im/xmpp/internal/integration/prosody does
  107. Zash IIRC there was a javascript library that used prosody in their tests
  108. Sam Whited oh yah, I think that's what this is doing
  109. Sam Whited Sorry, to be clear I was looking for a library that implemented XMPP server side functionality itself so I coudl steal their ideas :)
  110. Zash https://www.npmjs.com/package/node-xmpp-server well, that just links back to xmpp.js
  111. Zash 🤷️
  112. Sam Whited oooh, maybe this means there's a very old version in the repo (before they forked it and changed the name) that does do the server side though. I'll trawl through the history.
  113. stpeter has left
  114. marmistrz has left
  115. Neustradamus has left
  116. alacer has left
  117. alacer has joined
  118. Neustradamus has joined
  119. suohua has left
  120. marmistrz has joined
  121. paul has left
  122. larma has joined
  123. oibalos has left
  124. Sam Whited *sigh* looks like this is going to require major breaking changes no matter what. I guess that's what I get for not doing the server stuff at the same time as the client side though.
  125. marmistrz has left
  126. jonas’ has left
  127. test1 has joined
  128. test1 has left
  129. test1 has joined
  130. test1 has left
  131. marmistrz has joined
  132. stpeter has joined
  133. jonas’ has joined
  134. stpeter has left
  135. Guus has joined
  136. Guus has left
  137. test1 has joined
  138. test1 has left
  139. test1 has joined
  140. marmistrz has left
  141. test1 has left
  142. test1 has joined
  143. test1 has left
  144. jonas’ has left
  145. test1 has joined
  146. stpeter has joined
  147. test1 has left
  148. asterix has left
  149. asterix has joined
  150. oibalos has joined
  151. asterix has left
  152. asterix has joined
  153. asterix has left
  154. asterix has joined
  155. jonas’ has joined
  156. asterix has left
  157. asterix has joined
  158. asterix has left
  159. asterix has joined
  160. Yagizа has left
  161. mac has joined
  162. Yagizа has joined
  163. paul has joined
  164. belong has left
  165. stpeter has left
  166. belong has joined
  167. jonas’ has left
  168. jonas’ has joined
  169. jonas’ has left
  170. serge90 has left
  171. jonas’ has joined
  172. jonas’ has left
  173. jonas’ has joined
  174. marmistrz has joined
  175. mac has left
  176. adityaborikar has left
  177. Guus has joined
  178. o2 has left
  179. adityaborikar has joined
  180. lovetox has left
  181. lovetox has joined
  182. o2 has joined
  183. debacle has joined
  184. marmistrz has left
  185. marmistrz has joined
  186. serge90 has joined
  187. jonas’ has left
  188. stpeter has joined
  189. Yagizа has left
  190. belong has left
  191. belong has joined
  192. stpeter has left
  193. belong has left
  194. belong has joined
  195. kikuchiyo has left
  196. jonas’ has joined
  197. kikuchiyo has joined
  198. suohua has joined
  199. goffi has left
  200. jonas’ has left
  201. goffi has joined
  202. goffi has left
  203. stpeter has joined
  204. lovetox has left
  205. asterix has left
  206. asterix has joined
  207. asterix has left
  208. asterix has joined
  209. larma has left
  210. goffi has joined
  211. suohua has left
  212. adityaborikar has left
  213. adityaborikar has joined
  214. marmistrz has left
  215. stpeter has left
  216. goffi has left
  217. suohua has joined
  218. Guus has left
  219. asterix has left
  220. belong has left
  221. asterix has joined
  222. Alex has left
  223. oibalos has left
  224. wurstsalat has left
  225. paul has left
  226. larma has joined
  227. asterix has left
  228. asterix has joined
  229. asterix has left
  230. asterix has joined
  231. SouL has left
  232. suohua has left
  233. asterix has left
  234. asterix has joined
  235. asterix has left
  236. asterix has joined