tursodatabase / libsql-client-go

Go client API for libSQL
MIT License
180 stars 24 forks source link

Pass ctx down to websocket calls #16

Closed avinassh closed 1 year ago

avinassh commented 1 year ago

This PR, makes the internal methods to pass ctx to websocket library.

Also, taking from the discussion https://github.com/libsql/libsql-client-go/issues/9#issuecomment-1511408276 I have added timeout of 120 seconds to both websocket and http calls.