mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 08:53:01 +00:00
26 lines
775 B
C#
26 lines
775 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using CryptoExchange.Net.Interfaces;
|
|
using CryptoExchange.Net.Logging;
|
|
|
|
namespace CryptoExchange.Net.Sockets
|
|
{
|
|
/// <summary>
|
|
/// Default websocket factory implementation
|
|
/// </summary>
|
|
public class WebsocketFactory : IWebsocketFactory
|
|
{
|
|
/// <inheritdoc />
|
|
public IWebsocket CreateWebsocket(Log log, string url)
|
|
{
|
|
return new CryptoExchangeWebSocketClient(log, new Uri(url));
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IWebsocket CreateWebsocket(Log log, string url, IDictionary<string, string> cookies, IDictionary<string, string> headers)
|
|
{
|
|
return new CryptoExchangeWebSocketClient(log, new Uri(url), cookies, headers);
|
|
}
|
|
}
|
|
}
|