Can you describe the steps required to use ddp.js in a browser via HTML file?
(Happy to use older versions 0.6.0 or 1.1.0)
<html>
<head>
<script src="???"></script>
<script>
const options = {
endpoint: "ws://localhost:3000/websocket",
SocketConstructor: WebSocket
};
const ddp = new DDP(options);
ddp.on("connected", () => {
console.log("Connected");
});
</script>
</head>
<body>
<p>Check the console log for DDP messages</p>
</body>
</html>
Can you describe the steps required to use ddp.js in a browser via HTML file?
(Happy to use older versions 0.6.0 or 1.1.0)