Hello. I am using RappidJS in Vue application with Express server. I am trying to use Channel for real-time collaboration, but I am not able to run WS on client side. I have just copied that Channel constructor from Resources, but I am getting error "Error: ws does not work in the browser. Browser clients must use the native WebSocket object". I am not sure if reason for that is Vue or something else, but because there is not much in the docs about Channel, I am not sure what should be next steps. I am using trial version in the application and my code is:
import * as joint from './lib/rappid.min';
.........
initializeChannel() {
this.channel = new joint.com.Channel({
url: 'ws://localhost:4141',
graph: this.graph,
});
}
Hello. I am using RappidJS in Vue application with Express server. I am trying to use Channel for real-time collaboration, but I am not able to run WS on client side. I have just copied that Channel constructor from Resources, but I am getting error "Error: ws does not work in the browser. Browser clients must use the native WebSocket object". I am not sure if reason for that is Vue or something else, but because there is not much in the docs about Channel, I am not sure what should be next steps. I am using trial version in the application and my code is: