Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.3.0 #956

Closed
strukturart opened this issue May 17, 2022 · 1 comment
Closed

version 1.3.0 #956

strukturart opened this issue May 17, 2022 · 1 comment
Labels
question requests for more information

Comments

@strukturart
Copy link

I have to use version 1.3.0, is there a special way to integrate peereJS in this version?
because I get the following error message:

Uncaught TypeError: _peerjs.Peer is not a constructor

this is how i embed peerjs and use it:


import { Peer } from "peerjs";

let init = function () {
  peer = new Peer({
    host: "9000-peers-peerjsserver-sq8765p4pe8qac.ws-eu45.gitpod.io",
    port: 9000,
    path: "/",
    pingInterval: 5000,
    debug: 3,
  });

  peer.on("open", function (id) {
    settings.peerid = id;
  });
@jonasgloning
Copy link
Member

On 1.3 you have to use the default import: import Peer from "peerjs".

But you may not have to use the old version: #955 (comment)

@jonasgloning jonasgloning added the question requests for more information label May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question requests for more information
Projects
None yet
Development

No branches or pull requests

2 participants