void IPhotonPeerListener.OnEvent(EventData eventData) { //TODO: pool this later BinaryReader reader = new BinaryReader(new MemoryStream((byte[])eventData.Parameters[0])); _channelListener.OnNetData(reader); }
protected override void OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) { var reader = new BinaryReader(new MemoryStream((byte[])operationRequest.Parameters[0])); ChannelListener.OnNetData(reader); }