discordjs / RPC

A simple RPC client for Discord
MIT License
474 stars 192 forks source link

"WebSocketTransport.onOpen" cannot set 'endpoint' of undefined #41

Closed TheHazardWorks closed 6 years ago

TheHazardWorks commented 6 years ago

I have never ran into an issue before when implementing my source in the console. We have started trying to implement it within an electron environment and we have been consistently getting this error.

Uncaught TypeError: Cannot set property 'endpoint' of undefined at WebSocketTransport.onOpen (node_modules\discord-rpc\src\transports\WebSocket.js:52)

PLASMAchicken commented 6 years ago

Is your application even allowed to use Websocket transport

TheHazardWorks commented 6 years ago

I fail to see why it wouldn't be able to.

austinhuang0131 commented 6 years ago

Same issue on React.