Skip to content

Commit

Permalink
add WsService method GetConnection() to get the connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nizonglong committed Jun 22, 2021
1 parent 0ea79ac commit a6e9bb9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 15 additions & 8 deletions go/changelog.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
# Changelog

## v0.1.8

2021-06-22

- add `WsService` method `GetConnection()` to get the connection
- fix `changelog` date error

## v0.1.7

2020-06-04
2021-06-04

- fix reconnect msg nil `SubscribeOptions` caused reconnect msg lost

## v0.1.6

2020-06-04
2021-06-04

- add `io.ErrUnexpectedEOF` error capture, it caused v0.1.5 can't reconnect
- fix reconnect msg repeat add

## v0.1.5

2020-06-02
2021-06-02

- add `SpotUpdateAllDepthMsg` struct for parse all order book msg

## v0.1.4

2020-06-02
2021-06-02

- fix overlapping price for local order book example
- update README

## v0.1.3

2020-05-26
2021-05-26

- Support futures websocket.
- Modify channels name to with flag `Spot` or `Future`.
Expand All @@ -42,18 +49,18 @@

## v0.1.2

2020-04-19
2021-04-19

- Fix subscribe repeat bug.

## v0.1.1

2020-04-16
2021-04-16

- Fix subscribe channel failed bug.

## v0.1.0

2020-04-12
2021-04-12

- Support spot websocket function.
4 changes: 4 additions & 0 deletions go/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,7 @@ func (ws *WsService) GetChannels() []string {
})
return channels
}

func (ws *WsService) GetConnection() *websocket.Conn {
return ws.Client
}

0 comments on commit a6e9bb9

Please sign in to comment.