From a6e9bb9274d7d3548d5fe11e7c263bbfe85e69eb Mon Sep 17 00:00:00 2001 From: nizonglong Date: Tue, 22 Jun 2021 22:35:27 +0800 Subject: [PATCH] add `WsService` method `GetConnection()` to get the connection --- go/changelog.md | 23 +++++++++++++++-------- go/client.go | 4 ++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/go/changelog.md b/go/changelog.md index fcea903..6c94fe2 100644 --- a/go/changelog.md +++ b/go/changelog.md @@ -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`. @@ -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. \ No newline at end of file diff --git a/go/client.go b/go/client.go index 5f475bf..fe0beca 100644 --- a/go/client.go +++ b/go/client.go @@ -239,3 +239,7 @@ func (ws *WsService) GetChannels() []string { }) return channels } + +func (ws *WsService) GetConnection() *websocket.Conn { + return ws.Client +}