Thanks @gion for looking into this!

It's a good idea to expose a way to subscribe to connection events.

In the case of errors, I think it would be best to avoid [emitting `'error'` 
events](https://github.com/apache/tinkerpop/blob/3.4.3/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/connection.js#L216)
 and instead use `'socketError'`, that way we don't default to an uncaught 
error when the user is not listening to the `'error'` event, wdyt?

[ Full content available at: https://github.com/apache/tinkerpop/pull/1202 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to