Skip to content

Secure WebSockets (wss) #1143

Discussion options

You must be logged in to vote

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 the http/https protocol being used. This is done automatically, code is here

export const ws_address_from_base = (base_url) => {
const ws_url = new URL("./", base_url)
ws_url.protocol = ws_url.protocol.replace("http", "ws")
return String(ws_url)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@claytonEtillman
Comment options

Answer selected by fonsp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants