Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
plug.dj websocket address changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenn authored May 3, 2018
1 parent c0535d5 commit 3138c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class PlugAPI extends EventEmitter3 {
* @private
* @type {String}
*/
this.socketUrl = 'wss://godj.plug.dj:443/socket';
this.socketUrl = 'wss://ws-prod.plug.dj:443/socket';

/**
* WebSocket (connection to plug.DJ's socket server)
Expand Down Expand Up @@ -2003,7 +2003,7 @@ class PlugAPI extends EventEmitter3 {
* @since 5.0.0
*
* @example
* bot.setSocketURL('wss://godj.plug.dj');
* bot.setSocketURL('wss://ws-prod.plug.dj');
*/
setSocketURL(url) {
if (!url || !Object.is(typeof url, 'string') || !url.startsWith('wss') || url.indexOf('plug.dj') < 0) {
Expand Down

0 comments on commit 3138c43

Please sign in to comment.