itering / substrate-api-rpc

Substrate RPC lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

websocket Init() function params not in effect

CryptoDavChen opened this issue · comments

SubscribeConn.Dial(wsEndPoint, nil) for _, o := range options { o.Apply(SubscribeConn) }

maybe need change to:

for _, o := range options { o.Apply(SubscribeConn) } SubscribeConn.Dial(wsEndPoint, nil)

			SubscribeConn.Dial(wsEndPoint, nil)
			for _, o := range options {
				o.Apply(SubscribeConn)
			}

maybe need change to:

			for _, o := range options {
				o.Apply(SubscribeConn)
			}
			SubscribeConn.Dial(wsEndPoint, nil)
commented

@CryptoDavChen OK,thank you feedback. This issue has been fixed