qasaur / gremgo

A fast, efficient, and easy-to-use Go client for the Apache TinkerPop graph database stack
MIT License
98 stars 49 forks source link

Where is NewSecureDialer? #45

Open durango opened 5 years ago

durango commented 5 years ago

Seems to be missing?

vladkras commented 5 years ago

Just try to use wss protocol in dialer

dialer := gremgo.NewDialer("wss://127.0.0.1:8182")

can't check it locally because of untrusted local certificate but the connection is using popular gorilla/websocket and seems to be established without errors

cyrilzh commented 5 years ago

NewSecureDialer doesn't exist. The authentication code in readme file should be updated as below:

sa := gremgo.SetAuthentication("userame", "password")
dialer := gremgo.NewDialer("wss://htgremlin.gremlin.cosmos.azure.com:443", sa)  // if ssl, using wss