onStreamLimitExceeded abstract method

void onStreamLimitExceeded(
  1. ConnectionId cid,
  2. int currentCount,
  3. int limit
)

Called when an attempt to create a stream fails because the limit is exceeded.

cid is the connection ID. currentCount is the current number of active streams. limit is the maximum allowed streams.

Implementation

void onStreamLimitExceeded(ConnectionId cid, int currentCount, int limit);