callstack / react-native-opentok

React Native OpenTok
202 stars 79 forks source link

session:sessionDidConnect` is not a supported event type for OTSessionManager. #129

Closed frodoe7 closed 5 years ago

frodoe7 commented 5 years ago

The full error

1_MX40NjAxODQ3Mn5-MTU2NjMxMjQzMzY1OH5pckRtM1hMYzZhbjFMM1NERGFWeS8yNVN-fg:session:sessionDidConnect is not a supported event type for OTSessionManager. Supported events are: session:streamCreated, session:streamDestroyed, session:sessionDidConnect, session:sessionDidDisconnect, session:connectionCreated, session:connectionDestroyed, session:didFailWithError, publisher:streamCreated, session:signal, publisher:streamDestroyed, publisher:didFailWithError, publisher:audioLevelUpdated, subscriber:subscriberDidConnect, subscriber:subscriberDidDisconnect, subscriber:didFailWithError, subscriber:videoNetworkStatsUpdated, subscriber:audioNetworkStatsUpdated, subscriber:audioLevelUpdated, subscriber:subscriberVideoEnabled, subscriber:subscriberVideoDisabled, subscriber:subscriberVideoDisableWarning, subscriber:subscriberVideoDisableWarningLifted, subscriber:subscriberVideoDataReceived, session:archiveStartedWithId, session:archiveStoppedWithId, session:sessionDidBeginReconnecting, session:sessionDidReconnect, session:streamPropertyChanged, subscriber:subscriberDidReconnect, c2f2f608-d453-489d-a926-aa5f0f7d768f:publisher:streamCreated, c2f2f608-d453-489d-a926-aa5f0f7d768f:publisher:streamDestroyed, c2f2f608-d453-489d-a926-aa5f0f7d768f:publisher:didFailWithError, c2f2f608-d453-489d-a926-aa5f0f7d768f:publisher:audioLevelUpdated

-[RCTEventEmitter addListener:] RCTEventEmitter.m:78 __invoking___ -[NSInvocation invoke] -[NSInvocation invokeWithTarget:] -[RCTModuleMethod invokeWithBridge:module:arguments:] facebook::react::invokeInner(RCTBridge, RCTModuleData, unsigned int, folly::dynamic const&) facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) _dispatch_call_block_and_release _dispatch_client_callout _dispatch_lane_serial_drain _dispatch_lane_invoke _dispatch_workloop_worker_thread _pthread_wqthread start_wqthread

Environment

IOS , RN (V 0.59.5) , opentok-react-native (V 0.12.1)

Description

I followed the installation process carefully and uninstalled / installed opentok many times - but still no solution

frodoe7 commented 5 years ago

It was a mistake , the apiKey should be string , but I was submitting it as integer