Skip to content

wss:// 404 #20

@max-mapper

Description

@max-mapper

Hi, im trying to do an experiment in screensharing:

var quickconnect = require('rtc-quickconnect')

var constraints = {
  audio: false,
  video: {
    mandatory: {
      chromeMediaSource: 'screen'
    },
    optional: []
  }
}


quickconnect('//rtc.io/switchboard/', { ns: 'screenshare-test', data: true, constraints: constraints }).on('dc:open', function(channel, peerId) {
  console.log(channel, peerId)
  // var video = document.createElement('video')
  // video.src = window.URL.createObjectURL(stream)
  // video.autoplay = true
  // document.body.appendChild(video)
})

to use the screen sharing API you must be on an https server. I'm using npm install crisp -g to do this locally in development.

When I run the above code (using browserify) I get the following error:

WebSocket connection to 'wss://rtc.io/switchboard/' failed: Error during WebSocket handshake: Unexpected response code: 404

Is wss:// supported? I can't use ws:// due to mixed protocol errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions