You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

GatewaySocket.cs 1.1 KiB

12345678910111213141516171819202122232425262728293031
  1. using Discord.Logging;
  2. using Discord.Net.Rest;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. namespace Discord.Net.WebSockets
  8. {
  9. public class GatewaySocket : WebSocket
  10. {
  11. public string SessionId { get; private set; }
  12. public event EventHandler<WebSocketEventEventArgs> ReceivedDispatch = delegate { };
  13. public GatewaySocket(DiscordConfig config, ILogger logger) : base(config, logger) { }
  14. public Task Connect(RestClient rest, CancellationToken parentCancelToken) => null;
  15. public Task Disconnect() => null;
  16. public void SendIdentify(string token) { }
  17. public void SendResume() { }
  18. public override void SendHeartbeat() { }
  19. public void SendUpdateStatus(long? idleSince, string gameName) { }
  20. public void SendUpdateVoice(ulong? serverId, ulong? channelId, bool isSelfMuted, bool isSelfDeafened) { }
  21. public void SendRequestMembers(IEnumerable<ulong> serverId, string query, int limit) { }
  22. public override void WaitForConnection(CancellationToken cancelToken) { }
  23. }
  24. }