Secure WebSockets (wss) #1143
-
Hi Fons et alii, I am trying to embed a Pluto notebook inside a web snippet using the CMS framework of Odoo (previously OpenERP). It sits behind an nginx reverse proxy. I was able to figure out what I needed to have nginx put in the headers to upgrade to WebSocket, but I think there may be an implementation issue with WebSocket in the Pluto code. That or I'm overlooking something on my end, of course, but I've checked about every other angle so here I am. I'm trying to connect a MIDI controller through Web MIDI API. I am able to get a success on the promise navigator.requestMIDIAccess(), but then when I try to access the MIDIAccess.inputs I can't see anything. The Web recommendation is to only allow MIDI access through https, which I have been able to configure this far. I saw the request from Pluto was in ws protocol. I think it needs to be in wss for my use case. I skimmed over the Pluto.jl code last night, but couldn't find where to make that switch. Any assistance would be appreciated. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't understand your question, perhaps you can try rephrasing it in a way that we can read it without having to learn what the MIDI API is. About Pluto.jl/frontend/common/PlutoConnection.js Lines 182 to 186 in 099f40a |
Beta Was this translation helpful? Give feedback.
I don't understand your question, perhaps you can try rephrasing it in a way that we can read it without having to learn what the MIDI API is.
About
ws
/wss
, it should match thehttp
/https
protocol being used. This is done automatically, code is herePluto.jl/frontend/common/PlutoConnection.js
Lines 182 to 186 in 099f40a