コード例 #1
0
 private async Task SendSubscriptionRequest(WebSocketWrapper webSocketWrapper, string path)
 {
     await webSocketWrapper.SendMessageAsync($"{{ \"id\": {++id}, \"type\": \"sub\", \"path\": \"{path}\"}}").ConfigureAwait(false);
 }
コード例 #2
0
 private async Task SendPing(WebSocketWrapper webSocketWrapper)
 {
     await webSocketWrapper.SendMessageAsync($"{{ \"id\": {++id}, \"type\": \"ping\"}}").ConfigureAwait(false);
 }