 
             DefaultDiscordLogger.Logger.log("WebSocket closed, \(this.description)", type: "DiscordWebSocketable")
 
-            this.handleClose()
+            this.handleClose(reason: nil)
         }
         #endif
     }

        attachWebSocketHandlers()
        websocket?.connect()
        #else
        try? WebSocket.background(to: connectURL) {[weak self] ws in
            guard let this = self else { return }
            DefaultDiscordLogger.Logger.log("Websocket connected, shard: \(this.description)", type: "DiscordWebSocketable")


import Starscream
#else
import WebSockets
import Sockets
import URI
#endif

/// Declares that a type will be an Engine for the Discord Gateway.
