sta / sta/websocket-sharp

Сan't connect to socket

Open
#501 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

When I try to connect, I get this error:

02.11.2018 6:07:15|Warn |Logger.set_File|The current path to the log file has been changed to D:\log.txt.
02.11.2018 6:07:16|Debug|WebSocket.sendHttpRequest|A request to the server:
                         GET /ds/v3 HTTP/1.1
                         User-Agent: websocket-sharp/1.0
                         Host: olymptrade.com
                         Upgrade: websocket
                         Connection: Upgrade
                         Sec-WebSocket-Key: IFahJDOkh4fERzmvKrJbng==
                         Sec-WebSocket-Version: 13
02.11.2018 6:07:16|Debug|WebSocket.sendHttpRequest|A response to this request:
                         HTTP/1.1 101 Switching Protocols
                         Upgrade: websocket
                         Connection: Upgrade
                         Sec-WebSocket-Accept: hnOP3GqPYSZIbpBDPaNxMx9hUZA=
02.11.2018 6:07:16|Trace|WebSocket.close|Begin closing the connection.
02.11.2018 6:07:16|Debug|WebSocket.closeHandshake|Was clean?: True
                           sent: True
                           received: True
02.11.2018 6:07:16|Trace|WebSocket.close|End closing the connection.

Socket address: wss://olymptrade.com/ds/v2
Data to send: [{"t":2,"e":4,"uuid":"JNZB0IF2U34GIWBYJNS","d":[{"p":"XMRUSD","tf":1}]}]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WebSocket.sendHttpRequest and WebSocket.close log entries, comparing the requested wss://olymptrade.com/ds/v2 address with the logged /ds/v3 handshake. Reproduce the connection and determine why it closes after the successful handshake; done means the reported endpoint can connect and send the supplied data, with a regression check if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.