Open ledlamp opened 1 year ago
work-around
import WebSocket from "ws";
global.WebSocket = WebSocket;
import * as Misskey from 'misskey-js';
Pass the WebSocket as an argument to Stream.
var stream = new Misskey.Stream("https://misskey.io", {token: TOKEN}, {WebSocket: WebSocket})
my code
error