Hello, I'm song from opentok. Just had a chat with Ankur who updates the library and he says that the only reason for client to be undefined is when OpenTokSDK is not initialized correctly (invalid apiKey or secret). The SDK will return an Error object: https://github.com/opentok/opentok-node/blob/master/lib/opentok.js#L41